Followup r103945: fix regression in XML export namespace formatting for namespaces...
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 24 Nov 2011 01:26:52 +0000 (01:26 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 24 Nov 2011 01:26:52 +0000 (01:26 +0000)
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

index d3ee987..f7716f4 100644 (file)
@@ -692,7 +692,7 @@ class XmlDumpWriter {
                }
 
                global $wgContLang;
-               $prefix = $wgContLang->getNsText( $title->getNamespace() );
+               $prefix = str_replace( '_', ' ', $wgContLang->getNsText( $title->getNamespace() ) );
 
                if ($prefix !== '') {
                        $prefix .= ':';