From 4a4b3283642f0a6670773fe80bd6b76e2d80502e Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Wed, 29 May 2024 12:15:55 +0200 Subject: [PATCH] [Fixed] false class-property declaration --- Modules/Core/ViewConfig.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Modules/Core/ViewConfig.php b/Modules/Core/ViewConfig.php index 46f8681..282671e 100644 --- a/Modules/Core/ViewConfig.php +++ b/Modules/Core/ViewConfig.php @@ -28,7 +28,12 @@ class ViewConfig extends ViewConfig_parent // Google Tag Manager Container ID private $sContainerId = null; - private $sCookieManagerType = null; + + // used CMP + private $sCookieManagerType = null;# + + // isModule Activated properly? + private $blGA4enabled = null; public function getGtmContainerId() { @@ -147,8 +152,6 @@ class ViewConfig extends ViewConfig_parent return ""; } - private $blGA4enabled = null; - /** * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface @@ -157,7 +160,7 @@ class ViewConfig extends ViewConfig_parent { if ($this->blGA4enabled === null) { - $this->sContainerId = $this->d3GetModuleConfigParam("d3_gtm_blEnableGA4"); + $this->blGA4enabled = $this->d3GetModuleConfigParam("_blEnableGA4"); } return $this->blGA4enabled; @@ -165,7 +168,7 @@ class ViewConfig extends ViewConfig_parent public function isGtmConsentModeSetActivated() :bool { - return $this->sContainerId = $this->d3GetModuleConfigParam("_blEnableConsentMode"); + return $this->d3GetModuleConfigParam("_blEnableConsentMode"); } public function getGtmDataLayer()