From: Siebrand Mazeland Date: Mon, 11 Aug 2008 21:55:22 +0000 (+0000) Subject: (bug 14790) Export of category pages when using Category: prefix now actually gives... X-Git-Tag: 1.31.0-rc.0~45946 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=ab8464683369244ac43dabe372b39e6549db0bff;p=lhc%2Fweb%2Fwiklou.git (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(). --- 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