From 203dbd1f37e3c187b4694becf7326cdafc016fad Mon Sep 17 00:00:00 2001 From: Niklas Becker Date: Wed, 13 Jun 2018 14:03:29 +0200 Subject: [PATCH] fix TSFE TemplateService and controller not fully initialized after being created --- Classes/Utility/EidUtility.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Classes/Utility/EidUtility.php b/Classes/Utility/EidUtility.php index 4034d90..a971f4d 100644 --- a/Classes/Utility/EidUtility.php +++ b/Classes/Utility/EidUtility.php @@ -57,6 +57,8 @@ public static function initializeTypoScriptFrontendController($pageId = 0) if (!($controller->tmpl instanceof TemplateService)) { $controller->initTemplate(); + $controller->rootLine = $controller->sys_page->getRootLine($controller->id, $controller->MP); + $controller->page = $controller->sys_page->getPage($controller->id); } $controller->getConfigArray();