Changeset 26998 for trunk/admin/include/plugins.class.php
- Timestamp:
- Jan 27, 2014, 6:33:28 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/plugins.class.php
r26909 r26998 616 616 * Sort functions 617 617 */ 618 function plugin_version_compare($a, $b)619 {620 if (strtolower($a) == 'auto') return false;621 622 $array = preg_replace(623 array('/\.+/', '/\.\Z|\A\./'),624 array('.', ''),625 array($a, $b)626 );627 628 $array = preg_replace_callback(629 '/([a-z])/i',630 create_function('$m', 'return intval($m[1], 36);'),631 $array632 );633 634 return version_compare($array[0], $array[1], '>=');635 }636 637 618 function extension_revision_compare($a, $b) 638 619 {
Note: See TracChangeset
for help on using the changeset viewer.