Skip to content

Commit 90f5882

Browse files
authored
set objPage global and load details
1 parent 0b8df3c commit 90f5882

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Controller/FilesController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ public function fileAction(Request $request, string $file): BinaryFileResponse
6565
$root = $this->findFirstPublishedRootByHostAndLanguage($request->getHost(), $request->getLocale());
6666

6767
if (null !== $root) {
68+
$root->loadDetails();
6869
$request->attributes->set('pageModel', $root);
70+
$GLOBALS['objPage'] = $root;
6971
}
7072

7173
// Check whether the file exists

0 commit comments

Comments
 (0)