| Index: trunk/tools/analysis/StreamingXMLHistory.php |
| — | — | @@ -161,6 +161,18 @@ |
| 162 | 162 | $this->parseRev($reader->readOuterXML()); |
| 163 | 163 | }//revision |
| 164 | 164 | } //while |
| | 165 | + |
| | 166 | + if($this->pagelog && $this->nextLog){ |
| | 167 | + //note: assumes more page revisions exist than log action items |
| | 168 | + while ( $this->nextLog ){ |
| | 169 | + fputcsv( $this->outputFile, $this->nextLog ); |
| | 170 | + $this->md5History[] = $md5; |
| | 171 | + $this->revTypes[] = new PageAction(); |
| | 172 | + $this->nextLog = $this->getNextLogDataLine(); |
| | 173 | + } |
| | 174 | + } |
| | 175 | + |
| | 176 | + |
| 165 | 177 | $this->writeRevisionStatus(); |
| 166 | 178 | |
| 167 | 179 | } |
| — | — | @@ -208,8 +220,7 @@ |
| 209 | 221 | ); |
| 210 | 222 | $this->oldSize = $textSize; |
| 211 | 223 | |
| 212 | | - if($this->pagelog && $this->nextLog){ |
| 213 | | - //note: assumes more page revisions exist than log action items |
| | 224 | + if($this->pagelog && $this->nextLog){ |
| 214 | 225 | while (( $this->nextLog ) |
| 215 | 226 | && ( $csvData[1] > $this->nextLog[1] )){ |
| 216 | 227 | fputcsv( $this->outputFile, $this->nextLog ); |