Followup r53884, use wfSuppressWarnings/wfRestoreWarnings instead of @
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 19 Aug 2009 01:55:13 +0000 (01:55 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 19 Aug 2009 01:55:13 +0000 (01:55 +0000)
includes/HttpFunctions.php

index 465aa91..af2a049 100644 (file)
@@ -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: