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:
parent
608963577b
commit
53f5c13995
1 changed files with 1 additions and 1 deletions
|
|
@ -692,7 +692,7 @@ class XmlDumpWriter {
|
|||
}
|
||||
|
||||
global $wgContLang;
|
||||
$prefix = $wgContLang->getNsText( $title->getNamespace() );
|
||||
$prefix = str_replace( '_', ' ', $wgContLang->getNsText( $title->getNamespace() ) );
|
||||
|
||||
if ($prefix !== '') {
|
||||
$prefix .= ':';
|
||||
|
|
|
|||
Loading…
Reference in a new issue