From 2736d3331741b1826eaa82af20621abcff63edb7 Mon Sep 17 00:00:00 2001 From: Rafal Jania Date: Wed, 6 Mar 2024 15:06:28 +0100 Subject: [PATCH] [BUGFIX] Undefined global variable $TSFE in PageRendererHook.php --- Classes/Hooks/PageRendererHook.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/Hooks/PageRendererHook.php b/Classes/Hooks/PageRendererHook.php index a3f13ef..238190a 100644 --- a/Classes/Hooks/PageRendererHook.php +++ b/Classes/Hooks/PageRendererHook.php @@ -85,7 +85,8 @@ protected function createTranslations(array $siteConfiguration): void $privacyLinkConfiguration = ''; $privacyPageId = $siteConfiguration['klaro_privacy_page'] ?? 0; - if ($privacyPageId && $tsfe = $this->getTypoScriptFrontendController()) { + $tsfe = $this->getTypoScriptFrontendController(); + if ($privacyPageId && $tsfe && $tsfe->cObj) { $privacyLink = $tsfe->cObj->typoLink_URL([ 'parameter' => $privacyPageId, 'forceAbsoluteUrl' => true,