From ce58e13a670c70bdfcbbbef224297000897c34ae Mon Sep 17 00:00:00 2001
From: "michael.danielczok" <michael@pcsg.de>
Date: Wed, 7 Jun 2023 15:36:18 +0200
Subject: [PATCH] fix: incorrect property name in template

---
 index.html           | 2 +-
 index.php            | 1 -
 template/topBar.html | 7 +++----
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/index.html b/index.html
index 5956a44..055e04b 100644
--- a/index.html
+++ b/index.html
@@ -40,7 +40,7 @@
 {/if}
 {* small top bar *}
 {if $Template->getAttribute('showTopBar')}
-    {fetch template="template/topBar.html" Menu=$Menu User=$User Avatar=$Avatar Search=$Search}
+    {fetch template="template/topBar.html" Menu=$Menu User=$User Avatar=$Avatar Search=$Search Template=$Template}
 {/if}
 
 {template_event name="quiqqer::template-cologne::body::afterTopBar" Template=$Template}
diff --git a/index.php b/index.php
index b1ca7d8..725958c 100644
--- a/index.php
+++ b/index.php
@@ -115,7 +115,6 @@
 
 
 
-
 /**
  * Sign up / registration page
  */
diff --git a/template/topBar.html b/template/topBar.html
index 039da28..662c40a 100644
--- a/template/topBar.html
+++ b/template/topBar.html
@@ -10,17 +10,16 @@
         </div>
 
         {* language & currency switch *}
-        {if isset($Template['showTopbarLanguageSwitch']) && $Template['showTopbarLanguageSwitch']}
+        {if $Template->getAttribute('showTopbarLanguageSwitch')}
             {control control="\QUI\Bricks\Controls\LanguageSwitches\DropDown" showArrow=false}
         {/if}
 
         {* Show separator only if both controls are enabled *}
-        {if isset($Template['showTopbarLanguageSwitch']) && $Template['showTopbarLanguageSwitch'] &&
-            isset($Template['showTopbarCurrencySwitch']) && $Template['showTopbarCurrencySwitch']}
+        {if $Template->getAttribute('showTopbarLanguageSwitch') && $Template->getAttribute('showTopbarCurrencySwitch')}
             <span class="tobpar--separator"></span>
         {/if}
 
-        {if isset($Template['showTopbarCurrencySwitch']) && $Template['showTopbarCurrencySwitch']}
+        {if $Template->getAttribute('showTopbarCurrencySwitch')}
             {control control="QUI\TemplateCologne\Controls\CurrencySwitch"}
         {/if}
         {* END language & currency switch *}
-- 
GitLab