From 0b8df3c5b11e1f62b43018b4737eba701ba231c5 Mon Sep 17 00:00:00 2001 From: Fritz Michael Gschwantner Date: Thu, 28 Jul 2022 14:10:10 +0100 Subject: [PATCH] Update FilesController.php --- src/Controller/FilesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/FilesController.php b/src/Controller/FilesController.php index c9f2770..a6a6c9b 100644 --- a/src/Controller/FilesController.php +++ b/src/Controller/FilesController.php @@ -60,7 +60,7 @@ public function fileAction(Request $request, string $file): BinaryFileResponse // Initialize the Contao framework $this->framework->initialize(true); -FilesModel::findById(null); + // Set the root page for the domain as the pageModel attribute $root = $this->findFirstPublishedRootByHostAndLanguage($request->getHost(), $request->getLocale());