From 4684e284e0d5d4a6912835833986876dc996d21d Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 19 Aug 2009 01:55:13 +0000 Subject: [PATCH] Followup r53884, use wfSuppressWarnings/wfRestoreWarnings instead of @ --- includes/HttpFunctions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- 2.20.1