* Disable autofill for reuploads
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Wed, 4 Nov 2009 12:53:09 +0000 (12:53 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Wed, 4 Nov 2009 12:53:09 +0000 (12:53 +0000)
* Fix UploadFromStash::initialize parameters

includes/specials/SpecialUpload.php
includes/upload/UploadFromStash.php
languages/messages/MessagesEn.php

index 13bf301..7f877ae 100644 (file)
@@ -887,7 +887,7 @@ class UploadForm extends HTMLForm {
         * @param bool $autofill Whether or not to autofill the destination
         *      filename text box
         */
-       protected function addUploadJS( $autofill = true ) {
+       protected function addUploadJS( ) {
                global $wgUseAjax, $wgAjaxUploadDestCheck, $wgAjaxLicensePreview;
                global $wgEnableFirefogg, $wgEnableJS2system;
                global $wgOut;
@@ -899,7 +899,7 @@ class UploadForm extends HTMLForm {
                        'wgAjaxUploadDestCheck' => $wgUseAjax && $wgAjaxUploadDestCheck,
                        'wgAjaxLicensePreview' => $wgUseAjax && $wgAjaxLicensePreview,
                        'wgEnableFirefogg' => (bool)$wgEnableFirefogg,
-                       'wgUploadAutoFill' => (bool)$autofill,
+                       'wgUploadAutoFill' => !$this->mForReUpload,
                        'wgUploadSourceIds' => $this->mSourceIds,
                );
 
index 38d99f7..96059eb 100644 (file)
@@ -27,7 +27,7 @@ class UploadFromStash extends UploadBase {
        /*
         * some $na vars for uploadBase method compatibility.
         */
-       public function initialize( $name, $sessionData, $na, $na2=false ) {
+       public function initialize( $name, $sessionData, $na=false, $na2=false ) {
                        /**
                         * Confirming a temporarily stashed upload.
                         * We don't want path names to be forged, so we keep
index cb5479e..4cdc5d1 100644 (file)
@@ -2683,7 +2683,7 @@ See the [[Special:ProtectedPages|protected pages list]] for the list of currentl
 'protectexpiry'               => 'Expires:',
 'protect_expiry_invalid'      => 'Expiry time is invalid.',
 'protect_expiry_old'          => 'Expiry time is in the past.',
-'protect-unchain'             => 'Unlock move permissions',
+'protect-unchain-permissions' => 'Unlock further protect options',
 'protect-text'                => "You may view and change the protection level here for the page '''<nowiki>$1</nowiki>'''.",
 'protect-locked-blocked'      => "You cannot change protection levels while blocked.
 Here are the current settings for the page '''$1''':",