From 4a81c99b9a49e0e23605f36c55f4a26005c4722e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Mon, 6 Dec 2021 18:17:13 +0100 Subject: [PATCH] =?UTF-8?q?drapeau=20trad=20auto=20membre=20connect=C3=A9?= =?UTF-8?q?=20+=20homepage=20changement=20de=20langue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 11 ++++++----- core/module/translate/translate.php | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/core/core.php b/core/core.php index 7de4ec1e..d8caaf57 100644 --- a/core/core.php +++ b/core/core.php @@ -45,7 +45,7 @@ class common { // Numéro de version const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/'; - const ZWII_VERSION = '11.2.00.18'; + const ZWII_VERSION = '11.2.00.19'; const ZWII_UPDATE_CHANNEL = "test"; public static $actions = []; @@ -2119,7 +2119,8 @@ class common { if ($this->getData(['config', 'i18n', $key]) === 'site' OR ( $this->getData(['config', 'i18n','scriptGoogle']) === true - AND $this->getData(['config', 'i18n',$key]) === 'script' + AND $this->getData(['config', 'i18n', $key]) === 'script' + AND $this->getUser('group') >= self::GROUP_MODERATOR ) ) { if ( @@ -2135,9 +2136,9 @@ class common { $select = ' class="i18nFlag" '; } - echo '
  • '; - echo '' .  $value . ''; - echo '
  • '; + echo '
  • '; + echo '' .  $value . ''; + echo '
  • '; } } } diff --git a/core/module/translate/translate.php b/core/module/translate/translate.php index ef900745..85288e1c 100644 --- a/core/module/translate/translate.php +++ b/core/module/translate/translate.php @@ -199,7 +199,7 @@ class translate extends common { // Valeurs en sortie $this->addOutput([ - 'redirect' => helper::baseUrl() . $this->getUrl(4) + 'redirect' => helper::baseUrl() . $this->getData(['locale', $this->getUrl(2), 'homePageId' ]) ]); } } \ No newline at end of file