Two error suppression opertators less (per bug 24159)

This commit is contained in:
Alexandre Emsenhuber 2010-07-03 20:35:32 +00:00
parent b65b2d79e4
commit ebc9dfc668

View file

@ -209,11 +209,21 @@ class HTMLFileCache {
public static function clearFileCache( $title ) {
global $wgUseFileCache;
if( !$wgUseFileCache ) return false;
if ( !$wgUseFileCache ) {
return false;
}
wfSuppressWarnings();
$fc = new self( $title, 'view' );
@unlink( $fc->fileCacheName() );
unlink( $fc->fileCacheName() );
$fc = new self( $title, 'raw' );
@unlink( $fc->fileCacheName() );
unlink( $fc->fileCacheName() );
wfRestoreWarnings();
return true;
}
}