Index: trunk/phase3/includes/HTMLFileCache.php |
— | — | @@ -209,11 +209,21 @@ |
210 | 210 | |
211 | 211 | public static function clearFileCache( $title ) { |
212 | 212 | global $wgUseFileCache; |
213 | | - if( !$wgUseFileCache ) return false; |
| 213 | + |
| 214 | + if ( !$wgUseFileCache ) { |
| 215 | + return false; |
| 216 | + } |
| 217 | + |
| 218 | + wfSuppressWarnings(); |
| 219 | + |
214 | 220 | $fc = new self( $title, 'view' ); |
215 | | - @unlink( $fc->fileCacheName() ); |
| 221 | + unlink( $fc->fileCacheName() ); |
| 222 | + |
216 | 223 | $fc = new self( $title, 'raw' ); |
217 | | - @unlink( $fc->fileCacheName() ); |
| 224 | + unlink( $fc->fileCacheName() ); |
| 225 | + |
| 226 | + wfRestoreWarnings(); |
| 227 | + |
218 | 228 | return true; |
219 | 229 | } |
220 | 230 | } |