Skip to content

Commit

Permalink
set objPage global and load details
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Sep 23, 2022
1 parent 0b8df3c commit 90f5882
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controller/FilesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ public function fileAction(Request $request, string $file): BinaryFileResponse
$root = $this->findFirstPublishedRootByHostAndLanguage($request->getHost(), $request->getLocale());

if (null !== $root) {
$root->loadDetails();
$request->attributes->set('pageModel', $root);
$GLOBALS['objPage'] = $root;
}

// Check whether the file exists
Expand Down

0 comments on commit 90f5882

Please sign in to comment.