From 02e950c8f06979ee16d728175aae40edf6ab51e3 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 3 Nov 2023 11:42:15 +0100 Subject: [PATCH] =?UTF-8?q?Adapte=20le=20message=20lors=20de=20la=20mise?= =?UTF-8?q?=20=C3=A0=20jour?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/install/install.php | 8 +++++++- core/module/install/view/update/update.php | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/core/module/install/install.php b/core/module/install/install.php index d562f3e..670cea3 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -38,6 +38,8 @@ class install extends common // Fichiers des Interface public static $i18nFiles = []; + public static $updateButtonText = 'Réinstaller'; + /** * Pré-installation - choix de la langue */ @@ -446,10 +448,14 @@ 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 0ba1ffb..f4cf3b2 100644 --- a/core/module/install/view/update/update.php +++ b/core/module/install/view/update/update.php @@ -1,6 +1,6 @@

- +