Two error suppression opertators less (per bug 24159)
This commit is contained in:
parent
b65b2d79e4
commit
ebc9dfc668
1 changed files with 13 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue