aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
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);
}
/**