Don't access $_SESSION in UploadBase::stashSession.
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 12 Sep 2008 22:26:07 +0000 (22:26 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 12 Sep 2008 22:26:07 +0000 (22:26 +0000)
includes/UploadBase.php

index 665f413..e137ee5 100644 (file)
@@ -370,14 +370,12 @@ class UploadBase {
                        return false;
                }
 
-               $key = mt_rand( 0, 0x7fffffff );
-               $_SESSION['wsUploadData'][$key] = array(
+               return array(
                        'mTempPath'       => $status->value,
                        'mFileSize'       => $this->mFileSize,
                        'mFileProps'      => $this->mFileProps,
                        'version'         => self::SESSION_VERSION,
                );
-               return $key;
        }
        
        /**