* @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;
'wgAjaxUploadDestCheck' => $wgUseAjax && $wgAjaxUploadDestCheck,
'wgAjaxLicensePreview' => $wgUseAjax && $wgAjaxLicensePreview,
'wgEnableFirefogg' => (bool)$wgEnableFirefogg,
- 'wgUploadAutoFill' => (bool)$autofill,
+ 'wgUploadAutoFill' => !$this->mForReUpload,
'wgUploadSourceIds' => $this->mSourceIds,
);
/*
* 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
'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''':",