Changeset 25133 for trunk/admin/include
- Timestamp:
- Oct 25, 2013, 1:43:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/plugins.class.php
r25018 r25133 557 557 { 558 558 if (strtolower($a) == 'auto') return false; 559 560 $pattern = array('/([a-z])/ei', '/\.+/', '/\.\Z|\A\./'); 561 $replacement = array( "'.'.intval('\\1', 36).'.'", '.', ''); 562 563 $array = preg_replace($pattern, $replacement, array($a, $b)); 564 559 560 $array = preg_replace( 561 array('/\.+/', '/\.\Z|\A\./'), 562 array('.', ''), 563 array($a, $b) 564 ); 565 566 $array = preg_replace_callback( 567 '/([a-z])/i', 568 create_function('$m', 'return intval($m[1], 36);'), 569 $array 570 ); 571 565 572 return version_compare($array[0], $array[1], '>='); 566 573 }
Note: See TracChangeset
for help on using the changeset viewer.