[BUGFIX] Set extension name in Fluid context
[Packages/TYPO3.CMS.git] / 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);
     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']);
         $this->view->setTemplate($templateName);
         $this->view->setTemplateRootPaths(['EXT:viewpage/Resources/Private/Templates/ViewModule']);
         $this->view->setPartialRootPaths(['EXT:viewpage/Resources/Private/Partials']);