From c007b369770b00c6f3ed1d8c4de4372da7f75337 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 27 Jan 2009 22:41:08 +0000 Subject: [PATCH] Revert r45498 "Special:Upload can now have a custom upload message instead of uploadtext by passing "uploadmsg" parameter in the url. ... This should fix the Commons "uselang" hack on for Special:Upload." As noted on bug, this is insufficient to cover the requirements. --- RELEASE-NOTES | 2 -- includes/specials/SpecialUpload.php | 13 +------------ 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5a6a4cf69a..45f8f04c8f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -29,8 +29,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN === New features in 1.15 === * (bug 2242) Add an expiry time to temporary passwords -* Special:Upload can now have a custom upload message instead of uploadtext by - passing "uploadmsg" parameter in the url * (bug 9947) Add PROTECTIONLEVEL parser function to return the protection level for the current page for a given action * (bug 17002) Add &minor= and &summary= as parameters in the url when editing, diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index cd887ce734..207f44e8c2 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -1006,19 +1006,8 @@ wgUploadAutoFill = {$autofill}; $wgOut->addHTML( "

{$sub}

\n" . "{$msg}\n" ); } - - $uploadMsg = $wgRequest->getVal( 'uploadmsg' ); - if( $uploadMsg ) { - $uploadMsgName = 'uploadtext-' . $uploadMsg; - // Fall back to normal message if the custom messages is empty - if( wfEmptyMsg( $uploadMsgName, wfMsg( $uploadMsgName ) ) ) - $uploadMsgName = 'uploadtext'; - } else { - $uploadMsgName = 'uploadtext'; - } - $wgOut->addHTML( '
' ); - $wgOut->addWikiMsg( $uploadMsgName, $this->mDesiredDestName ); + $wgOut->addWikiMsg( 'uploadtext', $this->mDesiredDestName ); $wgOut->addHTML( "
\n" ); # Print a list of allowed file extensions, if so configured. We ignore -- 2.20.1