From: Bryan Tong Minh Date: Fri, 12 Mar 2010 18:46:13 +0000 (+0000) Subject: Remove the session_start from UploadBase, since there is nothing that could close... X-Git-Tag: 1.31.0-rc.0~37481 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=13a6729c2efa5d4552606dfaa94e9a55163f4f5f;p=lhc%2Fweb%2Fwiklou.git Remove the session_start from UploadBase, since there is nothing that could close the session in MediaWiki trunk. --- diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index 5d955b361e..72a78238d9 100644 --- a/includes/upload/UploadBase.php +++ b/includes/upload/UploadBase.php @@ -516,9 +516,7 @@ abstract class UploadBase { # Couldn't save the file. return false; } - if( !isset( $_SESSION ) ) { - session_start(); // start up the session (might have been previously closed to prevent php session locking) - } + $key = $this->getSessionKey(); $_SESSION['wsUploadData'][$key] = array( 'mTempPath' => $status->value,