diff options
author | mistic100 <mistic@piwigo.org> | 2014-01-27 18:05:04 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2014-01-27 18:05:04 +0000 |
commit | 6fcc5f10df0fbd02877e49aec7b662c64c60acc7 (patch) | |
tree | 5359b9244063c672c9c829c2e54bc935e870567f /admin/include/languages.class.php | |
parent | 46c2cb6b5f407848ed9bc60812b84f645106fedc (diff) |
Merged revision(s) 26972, 26998 from trunk:
replace more preg_replace callback
........
remove *_version_compare methods in languages & plugins & themes classes, unused and outdated (preg_replace /e modifier)
git-svn-id: http://piwigo.org/svn/branches/2.6@26999 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/languages.class.php')
-rw-r--r-- | admin/include/languages.class.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/admin/include/languages.class.php b/admin/include/languages.class.php index bb9487bec..c4caa2dc9 100644 --- a/admin/include/languages.class.php +++ b/admin/include/languages.class.php @@ -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'])); |