X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FExport.php;h=adab21c32c088615ac6d30bcffa351e7b9c0f289;hb=5befb9b74790a99aec5514ad8f8784a4fb085288;hp=4600feb5ad7e61e9900768ad81cdb815c4d06bac;hpb=1a115f50040d1d3d2b72ca4b86c824d47fd23d5b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Export.php b/includes/Export.php index 4600feb5ad..adab21c32c 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -874,7 +874,7 @@ class XmlDumpWriter { } global $wgContLang; - $prefix = str_replace( '_', ' ', $wgContLang->getNsText( $title->getNamespace() ) ); + $prefix = $wgContLang->getFormattedNsText( $title->getNamespace() ); if ( $prefix !== '' ) { $prefix .= ':'; @@ -1191,7 +1191,7 @@ class Dump7ZipOutput extends DumpPipeOutput { * @return string */ function setup7zCommand( $file ) { - $command = "7za a -bd -si " . wfEscapeShellArg( $file ); + $command = "7za a -bd -si -mx=4 " . wfEscapeShellArg( $file ); // Suppress annoying useless crap from p7zip // Unfortunately this could suppress real error messages too $command .= ' >' . wfGetNull() . ' 2>&1';