diff options
author | mistic100 <mistic@piwigo.org> | 2014-01-27 17:33:28 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2014-01-27 17:33:28 +0000 |
commit | 5310b5036efecccb587387dfc9a41061c3597b82 (patch) | |
tree | 31df25d9f83e9c6d189c132a5e21d83c1fa80677 /admin/include/plugins.class.php | |
parent | 2e7c7a13676c72f44ba7659f18cca1ed697cda2b (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | admin/include/plugins.class.php | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/admin/include/plugins.class.php b/admin/include/plugins.class.php index b410ff647..7a6bc4036 100644 --- a/admin/include/plugins.class.php +++ b/admin/include/plugins.class.php @@ -615,25 +615,6 @@ DELETE FROM '. PLUGINS_TABLE .' /** * Sort functions */ - function plugin_version_compare($a, $b) - { - if (strtolower($a) == 'auto') return false; - - $array = preg_replace( - array('/\.+/', '/\.\Z|\A\./'), - array('.', ''), - array($a, $b) - ); - - $array = preg_replace_callback( - '/([a-z])/i', - create_function('$m', 'return intval($m[1], 36);'), - $array - ); - - return version_compare($array[0], $array[1], '>='); - } - function extension_revision_compare($a, $b) { if ($a['revision_date'] < $b['revision_date']) return 1; |