diff --git a/core/module/install/install.php b/core/module/install/install.php index 8a64ddcd..a8577d17 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -30,6 +30,8 @@ class install extends common 'http://' => 'HTTP' ]; + public static $updateButtonText = 'Réinstaller'; + // Thèmes proposés à l'installation public static $themes = []; @@ -468,10 +470,17 @@ class install extends common } else { // Nouvelle version self::$newVersion = helper::getUrlContents(common::ZWII_UPDATE_URL . common::ZWII_UPDATE_CHANNEL . '/version'); + + // Variable de version + if (helper::checkNewVersion(common::ZWII_UPDATE_CHANNEL)) { + self::$updateButtonText = helper::translate('Mettre à jour'); + } + + // Valeurs en sortie $this->addOutput([ 'display' => self::DISPLAY_LAYOUT_LIGHT, - 'title' => helper::translate('Mise à jour'), + 'title' => helper::translate(self::$updateButtonText), 'view' => 'update' ]); } diff --git a/core/module/install/view/update/update.php b/core/module/install/view/update/update.php index 728f2bd8..f4cf3b23 100644 --- a/core/module/install/view/update/update.php +++ b/core/module/install/view/update/update.php @@ -1,9 +1,9 @@

- +   - +   .