Changeset 1918
- Timestamp:
- 02/04/2008 08:47:15 PM (11 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/drivers/Cache/File.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/drivers/Cache/File.php
r1901 r1918 184 184 return FALSE; 185 185 186 // Disable all error reporting while deleting 187 $ER = error_reporting(0); 188 186 189 foreach($files as $file) 187 190 { 188 191 // Remove the cache file 189 @unlink($file) or Log::add('error', 'Cache: Unable to delete cache file: '.$file); 190 } 191 192 return FALSE; 192 if ( ! unlink($file)) 193 Log::add('error', 'Cache: Unable to delete cache file: '.$file); 194 } 195 196 // Turn on error reporting again 197 error_reporting($ER); 198 199 return TRUE; 193 200 } 194 201
