dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bcb7bc
)
Followup r53884, use wfSuppressWarnings/wfRestoreWarnings instead of @
author
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 19 Aug 2009 01:55:13 +0000
(
01:55
+0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 19 Aug 2009 01:55:13 +0000
(
01:55
+0000)
includes/HttpFunctions.php
patch
|
blob
|
history
diff --git
a/includes/HttpFunctions.php
b/includes/HttpFunctions.php
index
465aa91
..
af2a049
100644
(file)
--- 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: