From 6c8589775b8df2b6fbeffbe594d9279ae90e85ba Mon Sep 17 00:00:00 2001 From: Nathan Guse Date: Wed, 19 Feb 2014 16:11:40 -0600 Subject: [ticket/9871] Update version check file to use json format PHPBB3-9871 --- phpBB/includes/functions.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'phpBB/includes/functions.php') 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); } /** -- cgit v1.2.1