Removed usage of error suppression operator
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 3 Jun 2011 10:20:45 +0000 (10:20 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 3 Jun 2011 10:20:45 +0000 (10:20 +0000)
includes/cache/MessageCache.php

index 3b6ba71..bdd363a 100644 (file)
@@ -189,7 +189,9 @@ class MessageCache {
 
                fwrite( $file, $hash . $serialized );
                fclose( $file );
-               @chmod( $filename, 0666 );
+               wfSuppressWarnings();
+               chmod( $filename, 0666 );
+               wfRestoreWarnings();
        }
 
        function saveToScript( $array, $hash, $code ) {