X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-updates.php;h=4a1c8d780671e3798e050c6c3114df3526690fb5;hp=743de75788f3d146db31e0bc07df201c3c1fbbae;hb=c78089215285d52d483760699d07a96dfbbe0671;hpb=8ece7fd45c386f7ccd60f9c4800ad207602b0240 diff --git a/inc/modules/admin/what-updates.php b/inc/modules/admin/what-updates.php index 743de75788..4a1c8d7806 100644 --- a/inc/modules/admin/what-updates.php +++ b/inc/modules/admin/what-updates.php @@ -83,7 +83,7 @@ if (empty($response[0]) && empty($response[1]) && empty($response[2]) && empty($ 'ctime' => array() ); - if (($response[3] != "[EOF]") && ($ONLINE['version'] == FULL_VERSION)) { + if (($response[3] != "[EOF]") && ($ONLINE['version'] == constant('FULL_VERSION'))) { // We have found new patches (newer than FULL_VERSION) $max = str_replace("\n", "", $response[sizeof($response) - 2]); $TOTAL_SIZE = 0; @@ -123,8 +123,8 @@ if (empty($response[0]) && empty($response[1]) && empty($response[2]) && empty($ // Is a newer version available? if (empty($ONLINE['version'])) { // Disconnected? - LOAD_TEMPLATE("admin_settings_saved", false, "
{!ADMIN_CANNOT_CHECK_VERSION!} (".$ONLINE['code'].")
"); -} elseif (($ONLINE['version'] != FULL_VERSION) || ($ONLINE['revision'] != CURR_SVN_REVISION)) { + LOAD_TEMPLATE("admin_settings_saved", false, "
{--ADMIN_CANNOT_CHECK_VERSION--} (".$ONLINE['code'].")
"); +} elseif (($ONLINE['version'] != constant('FULL_VERSION')) || ($ONLINE['revision'] != constant('CURR_SVN_REVISION'))) { // New full-version available (all previous released patches are included in this version!) define('__ONLINE_VERSION', $ONLINE['version']); define('__ONLINE_CHANGE' , MAKE_DATETIME($ONLINE['changed'], "2")); @@ -134,7 +134,7 @@ if (empty($ONLINE['version'])) { LOAD_TEMPLATE("admin_update_download"); } else { // You have the latest version! - LOAD_TEMPLATE("admin_settings_saved", false, NO_UPDATES_AVAILABLE); + LOAD_TEMPLATE("admin_settings_saved", false, getMessage('NO_UPDATES_AVAILABLE')); } //