From bc7832514edd5b153a4cd46a3476796b90fb8316 Mon Sep 17 00:00:00 2001 From: Ariel Glenn Date: Wed, 16 Nov 2011 12:01:58 +0000 Subject: [PATCH] add checkbox for listauthors on export form if wgExportAllowListContributors set --- includes/specials/SpecialExport.php | 9 +++++++++ languages/messages/MessagesEn.php | 1 + 2 files changed, 10 insertions(+) diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index d1f627856d..4e2d00e547 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -216,6 +216,15 @@ class SpecialExport extends SpecialPage { $request->wasPosted() ? $request->getCheck( 'wpDownload' ) : true ) . '
'; + if ( $wgExportAllowListContributors ) { + $form .= Xml::checkLabel( + wfMsg( 'exportlistauthors' ), + 'listauthors', + 'listauthors', + $request->wasPosted() ? $request->getCheck( 'listauthors' ) : false + ) . '
'; + } + $form .= Xml::submitButton( wfMsg( 'export-submit' ), Linker::tooltipAndAccesskeyAttribs( 'export' ) ); $form .= Xml::closeElement( 'form' ); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 79f7dee1b2..714f428545 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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', -- 2.20.1