Changeset 26904


Ignore:
Timestamp:
01/22/14 13:03:57 (6 years ago)
Author:
mistic100
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/admin/include/functions.php

    r26807 r26904  
    811811 
    812812  // filling $cat_fulldirs 
     813  $cat_dirs_callback = create_function('$m', 'global $cat_dirs; return $cat_dirs[$m[1]];'); 
     814 
    813815  $cat_fulldirs = array(); 
    814816  foreach ($categories as $category) 
     
    816818    $uppercats = str_replace(',', '/', $category['uppercats']); 
    817819    $cat_fulldirs[$category['id']] = $galleries_url[$category['site_id']]; 
    818     $cat_fulldirs[$category['id']].= preg_replace('/(\d+)/e', 
    819                                                   "\$cat_dirs['$1']", 
    820                                                   $uppercats); 
     820    $cat_fulldirs[$category['id']].= preg_replace_callback( 
     821      '/(\d+)/', 
     822      $cat_dirs_callback, 
     823      $uppercats 
     824      ); 
    821825  } 
    822826 
Note: See TracChangeset for help on using the changeset viewer.