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.
This commit is contained in:
Brion Vibber 2011-11-24 01:26:52 +00:00
parent 608963577b
commit 53f5c13995

View file

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