Changeset 17650
- Timestamp:
- Aug 27, 2012, 8:42:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/site_update.php
r13527 r17650 304 304 305 305 // to delete categories 306 $to_delete = array(); 306 $to_delete = array(); $to_delete_derivative_dirs = array(); 307 307 foreach (array_diff(array_keys($db_fulldirs), $fs_fulldirs) as $fulldir) 308 308 { … … 311 311 array_push($infos, array('path' => $fulldir, 312 312 'info' => l10n('deleted'))); 313 if (substr_compare($fulldir, '../', 0, 3)==0) 314 { 315 $fulldir = substr($fulldir, 3); 316 } 317 $to_delete_derivative_dirs[] = PHPWG_ROOT_PATH.PWG_DERIVATIVE_DIR.$fulldir; 313 318 } 314 319 if (count($to_delete) > 0) … … 317 322 { 318 323 delete_categories($to_delete); 324 foreach($to_delete_derivative_dirs as $to_delete_dir) 325 { 326 if (is_dir($to_delete_dir)) 327 { 328 clear_derivative_cache_rec($to_delete_dir, '#.+#'); 329 } 330 } 319 331 } 320 332 $counts['del_categories'] = count($to_delete);
Note: See TracChangeset
for help on using the changeset viewer.