aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_update.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-07-13 02:40:00 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-07-14 23:53:41 +0200
commitb0940f52e5f3ae096b63b82d449aa6fa8bb8555a (patch)
treeef7149bf23258594b8c0a569540d611610742310 /phpBB/includes/acp/acp_update.php
parentfdfd4ce5fdec03f3341a6b477e242f2674f20b1e (diff)
downloadforums-b0940f52e5f3ae096b63b82d449aa6fa8bb8555a.tar
forums-b0940f52e5f3ae096b63b82d449aa6fa8bb8555a.tar.gz
forums-b0940f52e5f3ae096b63b82d449aa6fa8bb8555a.tar.bz2
forums-b0940f52e5f3ae096b63b82d449aa6fa8bb8555a.tar.xz
forums-b0940f52e5f3ae096b63b82d449aa6fa8bb8555a.zip
[ticket/10263] Call phpbb_version_compare() from includes/acp/acp_update.php
PHPBB3-10263
Diffstat (limited to 'phpBB/includes/acp/acp_update.php')
-rw-r--r--phpBB/includes/acp/acp_update.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/phpBB/includes/acp/acp_update.php b/phpBB/includes/acp/acp_update.php
index b0ce8f1084..931fa53165 100644
--- a/phpBB/includes/acp/acp_update.php
+++ b/phpBB/includes/acp/acp_update.php
@@ -69,12 +69,9 @@ class acp_update
$current_version = (!empty($version_update_from)) ? $version_update_from : $config['version'];
- $up_to_date_automatic = (version_compare(str_replace('rc', 'RC', strtolower($current_version)), str_replace('rc', 'RC', strtolower($latest_version)), '<')) ? false : true;
- $up_to_date = (version_compare(str_replace('rc', 'RC', strtolower($config['version'])), str_replace('rc', 'RC', strtolower($latest_version)), '<')) ? false : true;
-
$template->assign_vars(array(
- 'S_UP_TO_DATE' => $up_to_date,
- 'S_UP_TO_DATE_AUTO' => $up_to_date_automatic,
+ 'S_UP_TO_DATE' => phpbb_version_compare($latest_version, $config['version'], '<='),
+ 'S_UP_TO_DATE_AUTO' => phpbb_version_compare($latest_version, $current_version, '<='),
'S_VERSION_CHECK' => true,
'U_ACTION' => $this->u_action,
'U_VERSIONCHECK_FORCE' => append_sid($this->u_action . '&amp;versioncheck_force=1'),