X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fexport%2FXmlDumpWriter.php;h=341e2aa32a3e9d12eb8a64499a924bdc1b24a22f;hp=5be166b29d47c6920aaadc5f9715ed37d847c243;hb=ef8bc825c6614a1687c7593d4beb0ebe24a1ada4;hpb=c3bdadc7a6d2634462a226e928af0df1d3034540;ds=sidebyside diff --git a/includes/export/XmlDumpWriter.php b/includes/export/XmlDumpWriter.php index 5be166b29d..341e2aa32a 100644 --- a/includes/export/XmlDumpWriter.php +++ b/includes/export/XmlDumpWriter.php @@ -431,6 +431,9 @@ class XmlDumpWriter { global $wgContLang; $prefix = $wgContLang->getFormattedNsText( $title->getNamespace() ); + // @todo Emit some kind of warning to the user if $title->getNamespace() !== + // NS_MAIN and $prefix === '' (viz. pages in an unregistered namespace) + if ( $prefix !== '' ) { $prefix .= ':'; }