From: Alexandre Emsenhuber Date: Wed, 22 Jun 2011 18:02:28 +0000 (+0000) Subject: Removed usage of error suppression operator X-Git-Tag: 1.31.0-rc.0~29361 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=1edfcb440c22a5afe57dac1110f6e23da0bbe88c;p=lhc%2Fweb%2Fwiklou.git Removed usage of error suppression operator --- diff --git a/includes/Import.php b/includes/Import.php index 73a15d58a3..8f12d72dde 100644 --- a/includes/Import.php +++ b/includes/Import.php @@ -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" ); }