Log stream buffer fix
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 14 Apr 2009 14:42:50 +0000 (14:42 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 14 Apr 2009 14:42:50 +0000 (14:42 +0000)
includes/Export.php

index 909804c..a991bcb 100644 (file)
@@ -197,10 +197,10 @@ class WikiExporter {
                                array( 'ORDER BY' => 'log_id', 'USE INDEX' => array('logging' => 'PRIMARY') )
                        );
                        $wrapper = $this->db->resultObject( $result );
+                       $this->outputLogStream( $wrapper );
                        if( $this->buffer == WikiExporter::STREAM ) {
                                $this->db->bufferResults( $prev );
                        }
-                       $this->outputLogStream( $wrapper );
                # For page dumps...
                } else {
                        $tables = array( 'page', 'revision' );