]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-updates.php
Wrapper function isBegRallyeEnabled() introduced, rewrites to make usage of isExtensi...
[mailer.git] / inc / modules / admin / what-updates.php
index 461eabe931306487f48f07fa5c3f40c7ad5073c6..8955a29616ad3a56bd4dcd3c8ef38e8cc77451a9 100644 (file)
@@ -56,7 +56,7 @@ if (empty($response[0]) && empty($response[1]) && empty($response[2]) && empty($
        $response = array('', '', '');
 } else {
        // Analyse header for response code
-       if (eregi('200 OK', $response[0])) {
+       if (isInStringIgnoreCase('200 OK', $response[0])) {
                // Found, kill header
                $pos = '0';
                foreach($response as $k => $v) {
@@ -91,7 +91,7 @@ if (empty($response[0]) && empty($response[1]) && empty($response[2]) && empty($
 if (empty($ONLINE['version'])) {
        // Disconnected?
        loadTemplate('admin_settings_saved', false, '<div class="admin_failed">{--ADMIN_CANNOT_CHECK_VERSION--} (' . $ONLINE['code'] . ')</div>');
-} elseif (($ONLINE['version'] != getConfig('FULL_VERSION')) || ($ONLINE['revision'] != getConfig('CURR_SVN_REVISION'))) {
+} elseif (($ONLINE['version'] != getFullVersion()) || ($ONLINE['revision'] != getCurrSvnRevision())) {
        // New full-version available (all previous released patches are included in this version!)
        $ONLINE['changed'] = generateDateTime($ONLINE['changed'], 2);
 
@@ -99,7 +99,7 @@ if (empty($ONLINE['version'])) {
        loadTemplate('admin_update_download', false, $ONLINE);
 } else {
        // You have the latest version!
-       loadTemplate('admin_settings_saved', false, getMessage('NO_UPDATES_AVAILABLE'));
+       loadTemplate('admin_settings_saved', false, '{--NO_UPDATES_AVAILABLE--}');
 }
 
 // [EOF]