Changeset 16167 for trunk/admin
- Timestamp:
- Jun 29, 2012, 6:25:02 AM (12 years ago)
- Location:
- trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r15950 r16167 515 515 $watermark_files[] = substr($file, strlen(PHPWG_ROOT_PATH)); 516 516 } 517 foreach (glob(PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'watermarks/*.png') as $file) 518 { 519 $watermark_files[] = substr($file, strlen(PHPWG_ROOT_PATH)); 517 if ( ($glob=glob(PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'watermarks/*.png')) !== false) 518 { 519 foreach ($glob as $file) 520 { 521 $watermark_files[] = substr($file, strlen(PHPWG_ROOT_PATH)); 522 } 520 523 } 521 524 $watermark_filemap = array( '' => '---' ); -
trunk/admin/include/functions.php
r13651 r16167 2361 2361 } 2362 2362 $path = substr_replace($path, $pattern, $dot, 0); 2363 foreach( glob(PHPWG_ROOT_PATH.PWG_DERIVATIVE_DIR.$path) as $file) 2364 { 2365 @unlink($file); 2363 if ( ($glob=glob(PHPWG_ROOT_PATH.PWG_DERIVATIVE_DIR.$path)) !== false) 2364 { 2365 foreach( $glob as $file) 2366 { 2367 @unlink($file); 2368 } 2366 2369 } 2367 2370 }
Note: See TracChangeset
for help on using the changeset viewer.