X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fexport%2FXmlDumpWriter.php;h=5a1f92c4cc43c1fb16ffbd9460a023a07c2f09e0;hp=52bf0f091090f636c926fe90d28d598b624e6d5c;hb=22806b0a4509e97b56fb52b387e17e3c80fb7eb2;hpb=cbc23bd4dae818680950d3ddb59939e1eb3b0074 diff --git a/includes/export/XmlDumpWriter.php b/includes/export/XmlDumpWriter.php index 52bf0f0910..5a1f92c4cc 100644 --- a/includes/export/XmlDumpWriter.php +++ b/includes/export/XmlDumpWriter.php @@ -433,6 +433,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 .= ':'; }