diff --git a/core/class/helper.class.php b/core/class/helper.class.php index 579ef071..98354432 100755 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -131,7 +131,7 @@ class helper { * @return string */ public static function getOnlineVersion() { - return (@file_get_contents('http://zwiicms.com/update/version')); + return (@file_get_contents('http://zwiicms.com/update/'. common::ZWII_UPDATE_CHANNEL . '/version')); } @@ -140,6 +140,7 @@ class helper { * @return bool */ public static function checkNewVersion() { + if($version = helper::getOnlineVersion()) { //return (trim($version) !== common::ZWII_VERSION); return ((version_compare(common::ZWII_VERSION,$version)) === -1); diff --git a/core/core.php b/core/core.php index 9cd6045b..471fde0e 100755 --- a/core/core.php +++ b/core/core.php @@ -36,7 +36,7 @@ class common { const THUMBS_WIDTH = 640; // Numéro de version - const ZWII_VERSION = '10.0.068'; + const ZWII_VERSION = '10.0.069'; const ZWII_UPDATE_CHANNEL = "v10"; public static $actions = []; @@ -2383,14 +2383,17 @@ class layout extends common { $rightItems .= '