From: Ariel Glenn Date: Wed, 16 Nov 2011 12:01:58 +0000 (+0000) Subject: add checkbox for listauthors on export form if wgExportAllowListContributors set X-Git-Tag: 1.31.0-rc.0~26477 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=bc7832514edd5b153a4cd46a3476796b90fb8316;p=lhc%2Fweb%2Fwiklou.git add checkbox for listauthors on export form if wgExportAllowListContributors set --- 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',