From: Greg Sabino Mullane Date: Thu, 5 Jan 2012 17:10:07 +0000 (+0000) Subject: For new 'export all' feature, cleanup whitepspace, remove redundant check, add docume... X-Git-Tag: 1.31.0-rc.0~25505 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=d527a8c818e851a508933c6078f0f42db5a542be;p=lhc%2Fweb%2Fwiklou.git For new 'export all' feature, cleanup whitepspace, remove redundant check, add documentation. Bug 10574y --- diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index 794da3fb80..2cb77f7d99 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -117,6 +117,7 @@ production. * Extensions can use the RequestContextCreateSkin hook to override what skin is loaded in some contexts. * (bug 33456) Show $wgQueryCacheLimit on cached query pages. +* (bug 10574) Add an option to allow all pages to be exported by Special:Export. === Bug fixes in 1.19 === * $wgUploadNavigationUrl should be used for file redlinks if. diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index b0e89fa6ce..ed04fc11ed 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -264,7 +264,7 @@ class SpecialExport extends SpecialPage { private function doExport( $page, $history, $list_authors, $exportall ) { // If we are grabbing everything, enable full history and ignore the rest - if ($exportall) { + if ( $exportall ) { $history = WikiExporter::FULL; } else { @@ -310,7 +310,7 @@ class SpecialExport extends SpecialPage { } /* Ok, let's get to it... */ - if( $history == WikiExporter::CURRENT && ! $exportall ) { + if( $history == WikiExporter::CURRENT ) { $lb = false; $db = wfGetDB( DB_SLAVE ); $buffer = WikiExporter::BUFFER; diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index cf7115d03e..1afb35c8aa 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -2983,6 +2983,7 @@ Parameters: # Export 'export' => 'Page title of [[Special:Export]], a page where a user can export pages from a wiki to a file.', 'exporttext' => 'Main text on [[Special:Export]]. Leave the line [[{{#Special:Export}}/{{MediaWiki:Mainpage}}]] exactly as it is!', +'exportall' => 'A label of checkbox option in [[Special:Export]]', 'exportcuronly' => 'A label of checkbox option in [[Special:Export]]', 'export-submit' => 'Button name in [[Special:Export]].