mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
remove *_version_compare methods in languages & plugins & themes classes, unused and outdated (preg_replace /e modifier)
git-svn-id: http://piwigo.org/svn/trunk@26998 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -402,16 +402,6 @@ UPDATE '.USER_INFOS_TABLE.'
|
||||
/**
|
||||
* Sort functions
|
||||
*/
|
||||
function language_version_compare($a, $b)
|
||||
{
|
||||
$pattern = array('/([a-z])/ei', '/\.+/', '/\.\Z|\A\./');
|
||||
$replacement = array( "'.'.intval('\\1', 36).'.'", '.', '');
|
||||
|
||||
$array = preg_replace($pattern, $replacement, array($a, $b));
|
||||
|
||||
return version_compare($array[0], $array[1], '>=');
|
||||
}
|
||||
|
||||
function extension_name_compare($a, $b)
|
||||
{
|
||||
return strcmp(strtolower($a['extension_name']), strtolower($b['extension_name']));
|
||||
|
||||
Reference in New Issue
Block a user