From 53f5c1399505efa343188cfe2bdfeb26ed9c4ebc Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 24 Nov 2011 01:26:52 +0000 Subject: [PATCH] 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. --- includes/Export.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 .= ':'; -- 2.20.1