* (bug 5903) When requesting the raw source of a non-existent message page,
return blank content (as opposed to the message key)
* Improve default blank content of MediaWiki:Common.css and MediaWiki:Monobook.css
+* (bug 6434) Allow customisation of submit button text on Special:Export
== Compatibility ==
$wgOut->addWikiText( wfMsg( "exporttext" ) );
$titleObj = Title::makeTitle( NS_SPECIAL, "Export" );
- $action = $titleObj->escapeLocalURL( 'action=submit' );
+
+ $form = wfOpenElement( 'form', array( 'method' => 'post', 'action' => $titleObj->getLocalUrl() ) );
+ $form .= wfOpenElement( 'textarea', array( 'name' => 'pages', 'cols' => 40, 'rows' => 10 ) ) . '</textarea><br />';
if( $wgExportAllowHistory ) {
- $checkbox = "<label><input type='checkbox' name='curonly' value='true' checked='checked' />
-" . wfMsgHtml( 'exportcuronly' ) . "</label><br />";
+ $form .= wfCheck( 'curonly', true, array( 'value' => 'true', 'id' => 'curonly' ) );
+ $form .= wfLabel( wfMsg( 'exportcuronly' ), 'curonly' ) . '<br />';
} else {
- $checkbox = "";
- $wgOut->addWikiText( wfMsg( "exportnohistory" ) );
+ $wgOut->addWikiText( wfMsg( 'exportnohistory' ) );
}
- $wgOut->addHTML( "
-<form method='post' action=\"$action\">
-<input type='hidden' name='action' value='submit' />
-<textarea name='pages' cols='40' rows='10'></textarea><br />
-$checkbox
-<input type='submit' />
-</form>
-" );
+ $form .= wfSubmitButton( wfMsg( 'export-submit' ) ) . '</form>';
+ $wgOut->addHtml( $form );
}
?>
In the latter case you can also use a link, e.g. [[{{ns:Special}}:Export/{{int:mainpage}}]] for the page {{int:mainpage}}.',
'exportcuronly' => 'Include only the current revision, not the full history',
'exportnohistory' => "----
-'''Note:''' exporting the full history of pages through this form has been disabled due to performance reasons.",
+'''Note:''' Exporting the full history of pages through this form has been disabled due to performance reasons.",
+'export-submit' => 'Export',
# Namespace 8 related