From 13a6729c2efa5d4552606dfaa94e9a55163f4f5f Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Fri, 12 Mar 2010 18:46:13 +0000 Subject: [PATCH] Remove the session_start from UploadBase, since there is nothing that could close the session in MediaWiki trunk. --- includes/upload/UploadBase.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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, -- 2.20.1