1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 08:17:47 +02:00

[ticket/9871] Update version check file to use json format

PHPBB3-9871
This commit is contained in:
Nathan Guse
2014-02-19 16:11:40 -06:00
parent bd8951cfbe
commit 6c8589775b
13 changed files with 742 additions and 324 deletions

View File

@@ -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);
}
/**