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