X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FExport.php;h=b4d77379e895803b4be732d85dbfcaafec854426;hb=640892e0fd6e4acc0407f84d81dc7bf9b651592f;hp=0d55d7dbc1cdbbacf4b31577d1eed34c908e66ed;hpb=a07ea9326e540e7b7b54685a0dff796cd9e9572f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Export.php b/includes/Export.php index 0d55d7dbc1..b4d77379e8 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -79,7 +79,7 @@ class WikiExporter { * make additional queries to pull source data while the * main query is still running. * - * @param DatabaseBase $db + * @param IDatabase $db * @param int|array $history One of WikiExporter::FULL, WikiExporter::CURRENT, * WikiExporter::RANGE or WikiExporter::STABLE, or an associative array: * - offset: non-inclusive offset at which to start the query @@ -874,7 +874,7 @@ class XmlDumpWriter { } global $wgContLang; - $prefix = str_replace( '_', ' ', $wgContLang->getNsText( $title->getNamespace() ) ); + $prefix = $wgContLang->getFormattedNsText( $title->getNamespace() ); if ( $prefix !== '' ) { $prefix .= ':';