From 623d5e775bdb48c77d26e01e9f51ef51f31cfe98 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Mon, 6 Feb 2023 21:43:40 +0100 Subject: [PATCH] =?UTF-8?q?12204=20autoupdate=20param=C3=A8tres=20manquant?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/helper.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/class/helper.class.php b/core/class/helper.class.php index 5935ef45..fe2ea52d 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -361,9 +361,9 @@ class helper * Renvoie le numéro de version de Zwii est en ligne * @return string */ - public static function getOnlineVersion() + public static function getOnlineVersion($channel) { - return (helper::getUrlContents(common::ZWII_UPDATE_URL . common::ZWII_UPDATE_CHANNEL . '/version')); + return (helper::getUrlContents(common::ZWII_UPDATE_URL . $channel . '/version')); } @@ -371,9 +371,9 @@ class helper * Check si une nouvelle version de Zwii est disponible * @return bool */ - public static function checkNewVersion() + public static function checkNewVersion($channel) { - $version = helper::getOnlineVersion(); + $version = helper::getOnlineVersion($channel); if (!empty($version)) { return ((version_compare(common::ZWII_VERSION, $version)) === -1); } else {