From 6fcc5f10df0fbd02877e49aec7b662c64c60acc7 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 27 Jan 2014 18:05:04 +0000 Subject: 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 --- admin/include/themes.class.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'admin/include/themes.class.php') diff --git a/admin/include/themes.class.php b/admin/include/themes.class.php index 7832c42e0..824ccf4b9 100644 --- a/admin/include/themes.class.php +++ b/admin/include/themes.class.php @@ -689,16 +689,6 @@ SELECT /** * Sort functions */ - function theme_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_revision_compare($a, $b) { if ($a['revision_date'] < $b['revision_date']) return 1; -- cgit v1.2.3