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());