add checkbox for listauthors on export form if wgExportAllowListContributors set
authorAriel Glenn <ariel@users.mediawiki.org>
Wed, 16 Nov 2011 12:01:58 +0000 (12:01 +0000)
committerAriel Glenn <ariel@users.mediawiki.org>
Wed, 16 Nov 2011 12:01:58 +0000 (12:01 +0000)
includes/specials/SpecialExport.php
languages/messages/MessagesEn.php

index d1f6278..4e2d00e 100644 (file)
@@ -216,6 +216,15 @@ class SpecialExport extends SpecialPage {
                        $request->wasPosted() ? $request->getCheck( 'wpDownload' ) : true
                ) . '<br />';
 
+               if ( $wgExportAllowListContributors ) {
+                       $form .= Xml::checkLabel(
+                               wfMsg( 'exportlistauthors' ),
+                               'listauthors',
+                               'listauthors',
+                               $request->wasPosted() ? $request->getCheck( 'listauthors' ) : false
+                       ) . '<br />';
+               }
+
                $form .= Xml::submitButton( wfMsg( 'export-submit' ), Linker::tooltipAndAccesskeyAttribs( 'export' ) );
                $form .= Xml::closeElement( 'form' );
 
index 79f7dee..714f428 100644 (file)
@@ -3278,6 +3278,7 @@ In the latter case you can also use a link, for example [[{{#Special:Export}}/{{
 '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.",
+'exportlistauthors' => 'Include a full list of contributors for each page',
 'export-submit'     => 'Export',
 'export-addcattext' => 'Add pages from category:',
 'export-addcat'     => 'Add',