From: Brion Vibber Date: Thu, 24 Nov 2011 01:26:52 +0000 (+0000) Subject: Followup r103945: fix regression in XML export namespace formatting for namespaces... X-Git-Tag: 1.31.0-rc.0~26312 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=53f5c1399505efa343188cfe2bdfeb26ed9c4ebc;p=lhc%2Fweb%2Fwiklou.git Followup r103945: fix regression in XML export namespace formatting for namespaces with spaces in them (eg 'User talk') The changes in r103945 for bug 32376, bug 31697 accidentally let underscore-forms through for the namespace portion, when we're supposed to have the space form. Causes problems with search indexing. --- diff --git a/includes/Export.php b/includes/Export.php index d3ee9879d7..f7716f4e2c 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -692,7 +692,7 @@ class XmlDumpWriter { } global $wgContLang; - $prefix = $wgContLang->getNsText( $title->getNamespace() ); + $prefix = str_replace( '_', ' ', $wgContLang->getNsText( $title->getNamespace() ) ); if ($prefix !== '') { $prefix .= ':';