From ab8464683369244ac43dabe372b39e6549db0bff Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Mon, 11 Aug 2008 21:55:22 +0000 Subject: [PATCH] (bug 14790) Export of category pages when using Category: prefix now actually gives results. makeTitleSafe() is only used to protect against nasty input, so use NS_MAIN which is empty. Any namespace prefix in the input will be stripped in wfExportGetPagesFromCategory() by getDBkey(). --- RELEASE-NOTES | 2 ++ includes/specials/SpecialExport.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1a13a84a7c..b60b389db3 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -104,6 +104,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 15101) Displaying only bots edits in Special:Recentchanges now works again * (bug 13770) Fixed incorrect detection of PHP's DOM module +* (bug 14790) Export of category pages when using Category: prefix now actually + gives results === API changes in 1.14 === diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index d500785ecd..b17140d885 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -126,7 +126,7 @@ function wfSpecialExport( $page = '' ) { $catname = $wgRequest->getText( 'catname' ); if ( $catname !== '' && $catname !== NULL && $catname !== false ) { - $t = Title::makeTitleSafe( NS_CATEGORY, $catname ); + $t = Title::makeTitleSafe( NS_MAIN, $catname ); if ( $t ) { /** * @fixme This can lead to hitting memory limit for very large -- 2.20.1