* Make "Did you mean" search feature more noticeable
* (bug 16720) Transcluded Special:NewPages processes "/username="
* Added "Advanced search" link to the search form
+* Special:Upload can now have a custom upload message instead of uploadtext by
+ passing "uploadmsg" parameter in the url
=== Bug fixes in 1.14 ===
$wgOut->addHTML( "<h2>{$sub}</h2>\n" .
"<span class='error'>{$msg}</span>\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( '<div id="uploadtext">' );
- $wgOut->addWikiMsg( 'uploadtext', $this->mDesiredDestName );
+ $wgOut->addWikiMsg( $uploadMsgName, $this->mDesiredDestName );
$wgOut->addHTML( "</div>\n" );
# Print a list of allowed file extensions, if so configured. We ignore