Skip to content

Commit

Permalink
Update FilesController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg authored Jul 28, 2022
1 parent 61431b3 commit 0b8df3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/FilesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 0b8df3c

Please sign in to comment.