Removed usage of error suppression operator
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 22 Jun 2011 18:02:28 +0000 (18:02 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 22 Jun 2011 18:02:28 +0000 (18:02 +0000)
includes/Import.php

index 73a15d5..8f12d72 100644 (file)
@@ -1254,7 +1254,9 @@ class ImportStreamSource {
        }
 
        static function newFromFile( $filename ) {
-               $file = @fopen( $filename, 'rt' );
+               wfSuppressWarnings();
+               $file = fopen( $filename, 'rt' );
+               wfRestoreWarnings();
                if( !$file ) {
                        return Status::newFatal( "importcantopen" );
                }