From f0466493b31972f986ed34df92022ef47cebf033 Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Thu, 1 Dec 2022 13:30:09 +0100 Subject: [PATCH] rework code to actually fit 6.0.x && 6.1x --- Application/Extend/ViewConfig.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Application/Extend/ViewConfig.php b/Application/Extend/ViewConfig.php index 15b2ecd..141dac2 100755 --- a/Application/Extend/ViewConfig.php +++ b/Application/Extend/ViewConfig.php @@ -30,10 +30,7 @@ class ViewConfig extends ViewConfig_parent { if ($this->sContainerId === null) { - $this->sContainerId = ContainerFactory::getInstance() - ->getContainer() - ->get(ModuleSettingBridgeInterface::class) - ->get('vt_gtm_sContainerID', 'vt-gtm'); + $this->sContainerId = $this->getConfig()->getConfigParam('vt_gtm_sContainerID'); } return $this->sContainerId; } @@ -44,10 +41,7 @@ class ViewConfig extends ViewConfig_parent { if ($this->blGA4enabled === null) { - $this->sContainerId = ContainerFactory::getInstance() - ->getContainer() - ->get(ModuleSettingBridgeInterface::class) - ->get('vt_gtm_blEnableGA4', 'vt-gtm'); + $this->sContainerId = $this->getConfig()->getConfigParam('vt_gtm_blEnableGA4'); } return $this->blGA4enabled; @@ -87,7 +81,7 @@ class ViewConfig extends ViewConfig_parent //'httpref' => $_SERVER["HTTP_REFERER"] ?? "unknown" ]; - return json_encode([$dataLayer], JSON_PRETTY_PRINT); + #return json_encode([$dataLayer], JSON_PRETTY_PRINT); unset($dataLayer["user"]["http"]); // das brauchen wir hier nicht