Index: trunk/phase3/includes/Export.php |
— | — | @@ -476,7 +476,7 @@ |
477 | 477 | function openPage( $row ) { |
478 | 478 | $out = " <page>\n"; |
479 | 479 | $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
480 | | - $out .= ' ' . Xml::elementClean( 'title', array(), self::canonicalTitle( $title ) ) . "\n"; |
| 480 | + $out .= ' ' . Xml::elementClean( 'title', array(), $title->getPrefixedText() ) . "\n"; |
481 | 481 | $out .= ' ' . Xml::element( 'ns', array(), strval( $row->page_namespace) ) . "\n"; |
482 | 482 | $out .= ' ' . Xml::element( 'id', array(), strval( $row->page_id ) ) . "\n"; |
483 | 483 | if ( $row->page_is_redirect ) { |
— | — | @@ -521,6 +521,12 @@ |
522 | 522 | |
523 | 523 | $out .= $this->writeTimestamp( $row->rev_timestamp ); |
524 | 524 | |
| 525 | + if ( $row->rev_sha1 ) { |
| 526 | + $out .= " " . Xml::element('sha1', null, strval($row->rev_sha1) ) . "\n"; |
| 527 | + } else { |
| 528 | + $out .= " <sha1/>\n"; |
| 529 | + } |
| 530 | + |
525 | 531 | if ( $row->rev_deleted & Revision::DELETED_USER ) { |
526 | 532 | $out .= " " . Xml::element( 'contributor', array( 'deleted' => 'deleted' ) ) . "\n"; |
527 | 533 | } else { |