Tweak for r29561: don't grab a database object until we need it
[lhc/web/wiklou.git] / includes / Export.php
index 9307795..c3ef945 100644 (file)
@@ -558,7 +558,7 @@ class Dump7ZipOutput extends DumpPipeOutput {
                $command = "7za a -bd -si " . wfEscapeShellArg( $file );
                // Suppress annoying useless crap from p7zip
                // Unfortunately this could suppress real error messages too
-               $command .= " >/dev/null 2>&1";
+               $command .= ' >' . wfGetNull() . ' 2>&1';
                parent::DumpPipeOutput( $command );
        }
 }
@@ -767,4 +767,4 @@ function xmlsafe( $string ) {
        return $string;
 }
 
-?>
+