(bug 9575) Accept upload description from GET parameters
authorRob Church <robchurch@users.mediawiki.org>
Sun, 22 Jul 2007 23:25:26 +0000 (23:25 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 22 Jul 2007 23:25:26 +0000 (23:25 +0000)
RELEASE-NOTES
includes/SpecialUpload.php

index d248b1e..877b57d 100644 (file)
@@ -155,6 +155,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Introduce 'UserGetRights' hook; see docs/hooks.txt for more information
 * Pass new Revision to the 'ArticleInsertComplete' and 'ArticleSaveComplete'
   hooks; see docs/hooks.txt for more information
+* (bug 9575) Accept upload description from GET parameters
 
 == Bugfixes since 1.10 ==
 
index 0c66e93..0affae1 100644 (file)
@@ -46,9 +46,11 @@ class UploadForm {
                global $wgAllowCopyUploads;
                $this->mDesiredDestName   = $request->getText( 'wpDestFile' );
                $this->mIgnoreWarning     = $request->getCheck( 'wpIgnoreWarning' );
+               $this->mComment           = $request->getText( 'wpUploadDescription' );
 
                if( !$request->wasPosted() ) {
-                       # GET requests just give the main form; no data except wpDestfile.
+                       # GET requests just give the main form; no data except destination
+                       # filename and description
                        return;
                }
 
@@ -59,7 +61,6 @@ class UploadForm {
                $this->mReUpload          = $request->getCheck( 'wpReUpload' );
                $this->mUploadClicked     = $request->getCheck( 'wpUpload' );
 
-               $this->mComment           = $request->getText( 'wpUploadDescription' );
                $this->mLicense           = $request->getText( 'wpLicense' );
                $this->mCopyrightStatus   = $request->getText( 'wpUploadCopyStatus' );
                $this->mCopyrightSource   = $request->getText( 'wpUploadSource' );