Changeset 26904 for branches/2.6
- Timestamp:
- Jan 22, 2014, 1:03:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/admin/include/functions.php
r26807 r26904 811 811 812 812 // filling $cat_fulldirs 813 $cat_dirs_callback = create_function('$m', 'global $cat_dirs; return $cat_dirs[$m[1]];'); 814 813 815 $cat_fulldirs = array(); 814 816 foreach ($categories as $category) … … 816 818 $uppercats = str_replace(',', '/', $category['uppercats']); 817 819 $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 ); 821 825 } 822 826
Note: See TracChangeset
for help on using the changeset viewer.