(bug 23465) Don't ignore the predefined destination filename on Special:Upload...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 18 Jun 2010 20:09:20 +0000 (20:09 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 18 Jun 2010 20:09:20 +0000 (20:09 +0000)
RELEASE-NOTES
includes/specials/SpecialUpload.php

index 763e3ed..965f800 100644 (file)
@@ -200,6 +200,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 16356) Repair dumpInterwiki.inc to use proper normalization.
 * (bug 24006) deleteArchivedRevisions.php maintenance script now longer throws
   a fatal error
+* (bug 23465) Don't ignore the predefined destination filename on 
+  Special:Upload after following a red link
 
 === API changes in 1.17 ===
 * (bug 22738) Allow filtering by action type on query=logevent.
index dee0301..3307064 100644 (file)
@@ -1035,7 +1035,10 @@ class UploadForm extends HTMLForm {
                $scriptVars = array(
                        'wgAjaxUploadDestCheck' => $useAjaxDestCheck,
                        'wgAjaxLicensePreview' => $useAjaxLicensePreview,
-                       'wgUploadAutoFill' => !$this->mForReUpload,
+                       'wgUploadAutoFill' => !$this->mForReUpload &&
+                               // If we received mDestFile from the request, don't autofill
+                               // the wpDestFile textbox
+                               $this->mDestFile === '',
                        'wgUploadSourceIds' => $this->mSourceIds,
                );