aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2014-02-19 16:11:40 -0600
committerNathan Guse <nathaniel.guse@gmail.com>2014-02-19 16:13:23 -0600
commit6c8589775b8df2b6fbeffbe594d9279ae90e85ba (patch)
tree170b26bd86dce0eeb7d6c447115f6810ced34bc2 /phpBB/includes/functions.php
parentbd8951cfbec799f685eb89f14a83933cee647112 (diff)
downloadforums-6c8589775b8df2b6fbeffbe594d9279ae90e85ba.tar
forums-6c8589775b8df2b6fbeffbe594d9279ae90e85ba.tar.gz
forums-6c8589775b8df2b6fbeffbe594d9279ae90e85ba.tar.bz2
forums-6c8589775b8df2b6fbeffbe594d9279ae90e85ba.tar.xz
forums-6c8589775b8df2b6fbeffbe594d9279ae90e85ba.zip
[ticket/9871] Update version check file to use json format
PHPBB3-9871
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 689a682de3..97e35a930b 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -429,17 +429,11 @@ function phpbb_email_hash($email)
*/
function phpbb_version_compare($version1, $version2, $operator = null)
{
- $version1 = strtolower($version1);
- $version2 = strtolower($version2);
+ global $phpbb_container;
- if (is_null($operator))
- {
- return version_compare($version1, $version2);
- }
- else
- {
- return version_compare($version1, $version2, $operator);
- }
+ $version_helper = $phpbb_container->get('version_helper');
+
+ return $version_helper->compare($version1, $version2, $operator);
}
/**