[BUGFIX] Set extension name in Fluid context 35/56635/4
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Thu, 12 Apr 2018 07:28:14 +0000 (09:28 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Thu, 12 Apr 2018 08:34:17 +0000 (10:34 +0200)
Resolves: #84697
Related: #83987
Releases: master
Change-Id: I292b5942144c1453921ba7ce490e26209dee187f
Reviewed-on: https://review.typo3.org/56635
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/viewpage/Classes/Controller/ViewModuleController.php

index 9d0f9c7..9e473bf 100644 (file)
@@ -72,6 +72,7 @@ class ViewModuleController
     protected function initializeView(string $templateName)
     {
         $this->view = GeneralUtility::makeInstance(StandaloneView::class);
+        $this->view->getRequest()->setControllerExtensionName('Viewpage');
         $this->view->setTemplate($templateName);
         $this->view->setTemplateRootPaths(['EXT:viewpage/Resources/Private/Templates/ViewModule']);
         $this->view->setPartialRootPaths(['EXT:viewpage/Resources/Private/Partials']);