aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_main.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-07-14 23:58:51 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-07-14 23:58:51 +0200
commit7f56c05f2450dbf33e48d2c1b9885353ddd58beb (patch)
treee172de25a513d938bcf675092978b845d69f816d /phpBB/includes/acp/acp_main.php
parentb0940f52e5f3ae096b63b82d449aa6fa8bb8555a (diff)
downloadforums-7f56c05f2450dbf33e48d2c1b9885353ddd58beb.tar
forums-7f56c05f2450dbf33e48d2c1b9885353ddd58beb.tar.gz
forums-7f56c05f2450dbf33e48d2c1b9885353ddd58beb.tar.bz2
forums-7f56c05f2450dbf33e48d2c1b9885353ddd58beb.tar.xz
forums-7f56c05f2450dbf33e48d2c1b9885353ddd58beb.zip
[ticket/10263] Call phpbb_version_compare() from includes/acp/acp_main.php
PHPBB3-10263
Diffstat (limited to 'phpBB/includes/acp/acp_main.php')
-rw-r--r--phpBB/includes/acp/acp_main.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php
index 60cebe3c08..68445d814f 100644
--- a/phpBB/includes/acp/acp_main.php
+++ b/phpBB/includes/acp/acp_main.php
@@ -415,11 +415,8 @@ class acp_main
{
$latest_version_info = explode("\n", $latest_version_info);
- $latest_version = str_replace('rc', 'RC', strtolower(trim($latest_version_info[0])));
- $current_version = str_replace('rc', 'RC', strtolower($config['version']));
-
$template->assign_vars(array(
- 'S_VERSION_UP_TO_DATE' => version_compare($current_version, $latest_version, '<') ? false : true,
+ 'S_VERSION_UP_TO_DATE' => phpbb_version_compare(trim($latest_version_info[0]), $config['version'], '<='),
));
}