Changeset 26999 for branches/2.6/admin/include/plugins.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/plugins.class.php
r26461 r26999 615 615 * Sort functions 616 616 */ 617 function plugin_version_compare($a, $b)618 {619 if (strtolower($a) == 'auto') return false;620 621 $array = preg_replace(622 array('/\.+/', '/\.\Z|\A\./'),623 array('.', ''),624 array($a, $b)625 );626 627 $array = preg_replace_callback(628 '/([a-z])/i',629 create_function('$m', 'return intval($m[1], 36);'),630 $array631 );632 633 return version_compare($array[0], $array[1], '>=');634 }635 636 617 function extension_revision_compare($a, $b) 637 618 {
Note: See TracChangeset
for help on using the changeset viewer.