r103314 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103313‎ | r103314 | r103315 >
Date:12:01, 16 November 2011
Author:ariel
Status:resolved (Comments)
Tags:
Comment:
add checkbox for listauthors on export form if wgExportAllowListContributors set
Modified paths:
  • /trunk/phase3/includes/specials/SpecialExport.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialExport.php
@@ -216,6 +216,15 @@
217217 $request->wasPosted() ? $request->getCheck( 'wpDownload' ) : true
218218 ) . '<br />';
219219
 220+ if ( $wgExportAllowListContributors ) {
 221+ $form .= Xml::checkLabel(
 222+ wfMsg( 'exportlistauthors' ),
 223+ 'listauthors',
 224+ 'listauthors',
 225+ $request->wasPosted() ? $request->getCheck( 'listauthors' ) : false
 226+ ) . '<br />';
 227+ }
 228+
220229 $form .= Xml::submitButton( wfMsg( 'export-submit' ), Linker::tooltipAndAccesskeyAttribs( 'export' ) );
221230 $form .= Xml::closeElement( 'form' );
222231
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -3278,6 +3278,7 @@
32793279 'exportcuronly' => 'Include only the current revision, not the full history',
32803280 'exportnohistory' => "----
32813281 '''Note:''' Exporting the full history of pages through this form has been disabled due to performance reasons.",
 3282+'exportlistauthors' => 'Include a full list of contributors for each page',
32823283 'export-submit' => 'Export',
32833284 'export-addcattext' => 'Add pages from category:',
32843285 'export-addcat' => 'Add',

Follow-up revisions

RevisionCommit summaryAuthorDate
r103355Register new message key from r103314 for maintenance scriptsraymond19:03, 16 November 2011

Comments

#Comment by Siebrand (talk | contribs)   03:21, 17 November 2011

Please add message documentation for the newly added messages. Thanks.

Status & tagging log