From a788db22309e868cdeef103cf032ce3a7ff48c93 Mon Sep 17 00:00:00 2001 From: Bernhard Sirlinger Date: Thu, 30 Oct 2025 13:38:30 +0100 Subject: [PATCH] [BUGFIX] don't use $GLOBALS["TSFE"] Instead use frontend.controller attribute which should be used according to https://docs.typo3.org/permalink/t3coreapi:tsfe-contentobjectrenderer --- Classes/Backend/LayoutSetup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Backend/LayoutSetup.php b/Classes/Backend/LayoutSetup.php index 1d24d4d..8c16935 100644 --- a/Classes/Backend/LayoutSetup.php +++ b/Classes/Backend/LayoutSetup.php @@ -126,7 +126,7 @@ protected function loadLayoutSetup(int $pageId): void { // Load page TSconfig. if (($GLOBALS['TYPO3_REQUEST'] ?? null) && ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isFrontend()) { - $pageTSconfig = $GLOBALS['TSFE']->getPagesTSconfig(); + $pageTSconfig = $GLOBALS['TYPO3_REQUEST']->getAttribute('frontend.controller')->getPagesTSconfig(); } else { $pageTSconfig = BackendUtility::getPagesTSconfig($pageId); }