fix regression from r24838 -- lost a '>' char for redirecting 7za output to null
[lhc/web/wiklou.git] / includes / Export.php
index e9e210d..c3ef945 100644 (file)
@@ -384,8 +384,6 @@ class XmlDumpWriter {
                $title = Title::makeTitle( $row->page_namespace, $row->page_title );
                $out .= '    ' . wfElementClean( 'title', array(), $title->getPrefixedText() ) . "\n";
                $out .= '    ' . wfElement( 'id', array(), strval( $row->page_id ) ) . "\n";
-               if(isset($row->num_page_ref))
-                       $out .= '    ' . wfElement( 'references', array(), strval( $row->num_page_ref ) ) . "\n";
                if( '' != $row->page_restrictions ) {
                        $out .= '    ' . wfElement( 'restrictions', array(),
                                strval( $row->page_restrictions ) ) . "\n";
@@ -560,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 );
        }
 }
@@ -769,4 +767,4 @@ function xmlsafe( $string ) {
        return $string;
 }
 
-?>
+