Index: trunk/phase3/includes/Import.php |
— | — | @@ -1254,7 +1254,9 @@ |
1255 | 1255 | } |
1256 | 1256 | |
1257 | 1257 | static function newFromFile( $filename ) { |
1258 | | - $file = @fopen( $filename, 'rt' ); |
| 1258 | + wfSuppressWarnings(); |
| 1259 | + $file = fopen( $filename, 'rt' ); |
| 1260 | + wfRestoreWarnings(); |
1259 | 1261 | if( !$file ) { |
1260 | 1262 | return Status::newFatal( "importcantopen" ); |
1261 | 1263 | } |