Ignore:
Timestamp:
Jan 27, 2014, 6:33:28 PM (11 years ago)
Author:
mistic100
Message:

remove *_version_compare methods in languages & plugins & themes classes, unused and outdated (preg_replace /e modifier)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/plugins.class.php

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