From: Chad Horohoe Date: Wed, 19 Aug 2009 01:55:13 +0000 (+0000) Subject: Followup r53884, use wfSuppressWarnings/wfRestoreWarnings instead of @ X-Git-Tag: 1.31.0-rc.0~40217 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=4684e284e0d5d4a6912835833986876dc996d21d;p=lhc%2Fweb%2Fwiklou.git Followup r53884, use wfSuppressWarnings/wfRestoreWarnings instead of @ --- diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 465aa91904..af2a049782 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -586,10 +586,12 @@ class simpleFileWriter { $status = Status::newGood(); // start the session (if necessary) if( !$wgSessionsInMemcached ){ - if( @session_start() === false){ + wfSuppressWarnings(); + if( session_start() === false ){ wfDebug( __METHOD__ . ' could not start session' ); exit( 0 ); } + wfRestoreWarnings(); } $sd =& $_SESSION['wsDownload'][ $this->upload_session_key ]; // check if the user canceled the request: