Ignore:
Timestamp:
01/27/14 19:05:04 (6 years ago)
Author:
mistic100
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/admin/include/plugins.class.php

    r26461 r26999  
    615615   * Sort functions 
    616616   */ 
    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       $array 
    631       ); 
    632      
    633     return version_compare($array[0], $array[1], '>='); 
    634   } 
    635  
    636617  function extension_revision_compare($a, $b) 
    637618  { 
Note: See TracChangeset for help on using the changeset viewer.