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/history.php

    r26649 r26999  
    340340    name, url_name 
    341341  FROM '.TAGS_TABLE; 
     342 
     343    global $name_of_tag; // used for preg_replace 
    342344    $name_of_tag = array(); 
    343345    $result = pwg_query($query); 
     
    400402    if (isset($line['tag_ids'])) 
    401403    { 
    402       $tags_string = preg_replace( 
    403         '/(\d+)/e', 
    404         'isset($name_of_tag["$1"]) ? $name_of_tag["$1"] : "$1"', 
     404      $tags_string = preg_replace_callback( 
     405        '/(\d+)/', 
     406        create_function('$m', 'return isset($name_of_tag[$m[1]]) ? $name_of_tag[$m[1]] : $m[1];'), 
    405407        str_replace( 
    406408          ',', 
     
    542544      ) 
    543545    ); 
     546 
     547  unset($name_of_tag); 
    544548} 
    545549 
Note: See TracChangeset for help on using the changeset viewer.