From fed8fb6ab198c309920fc7a1cf05d1f01fa553a8 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Mon, 22 Mar 2021 11:30:34 +0100 Subject: [PATCH] =?UTF-8?q?Bug=20d=C3=A9placement=20menu=20=C3=A0=20valide?= =?UTF-8?q?r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/theme/theme.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 8d0d1817..b9589ca6 100755 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -424,17 +424,20 @@ class theme extends common { 'imageContainer' => $this->getInput('themeHeaderImageContainer') ]]); // Modification de la position du menu selon la position de la bannière - switch ($this->getInput('themeHeaderPosition') && - $this->getData(['theme','menu','position']) !== 'site' && - $this->getData(['theme','menu','position']) !== 'top' ) { - case 'site' : - $position = str_replace ('body','site',$this->getData(['theme','menu','position'])); - break; - case 'body' : - $position = str_replace ('site','body',$this->getData(['theme','menu','position'])); - break; - default: - $position = $this->getData(['theme','menu','position']); + if ( $this->getInput('themeHeaderPosition') && + $this->getData(['theme','menu','position']) !== 'site' && + $this->getData(['theme','menu','position']) !== 'top' ) + { + switch ($this->getInput('themeHeaderPosition')) { + case 'site' : + $position = str_replace ('body','site',$this->getData(['theme','menu','position'])); + break; + case 'body' : + $position = str_replace ('site','body',$this->getData(['theme','menu','position'])); + break; + default: + $position = $this->getData(['theme','menu','position']); + } } $this->setData(['theme', 'menu', [