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/themes.class.php

    r26461 r26999  
    690690   * Sort functions 
    691691   */ 
    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  
    702692  function extension_revision_compare($a, $b) 
    703693  { 
Note: See TracChangeset for help on using the changeset viewer.