Changeset 26999 for branches/2.6/admin/include/themes.class.php
- Timestamp:
- Jan 27, 2014, 7:05:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/admin/include/themes.class.php
r26461 r26999 690 690 * Sort functions 691 691 */ 692 function theme_version_compare($a, $b)693 {694 $pattern = array('/([a-z])/ei', '/\.+/', '/\.\Z|\A\./');695 $replacement = array( "'.'.intval('\\1', 36).'.'", '.', '');696 697 $array = preg_replace($pattern, $replacement, array($a, $b));698 699 return version_compare($array[0], $array[1], '>=');700 }701 702 692 function extension_revision_compare($a, $b) 703 693 {
Note: See TracChangeset
for help on using the changeset viewer.