Changeset 25133


Ignore:
Timestamp:
Oct 25, 2013, 1:43:56 PM (7 years ago)
Author:
mistic100
Message:

bug 2989: Deprecated: preg_replace(): The /e modifier is deprecated on

File:
1 edited

Legend:

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

    r25018 r25133  
    557557  {
    558558    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   
    565572    return version_compare($array[0], $array[1], '>=');
    566573  }
Note: See TracChangeset for help on using the changeset viewer.