From 707dfa9235c74c39f3d7ced1594df1ece1391369 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 12 Jan 2012 22:17:54 +0000 Subject: [PATCH] Revert r108764: doesn't appear to do what it says in the description, and no explanation why it's being done (presumably would just break searches again?) --- includes/Export.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/includes/Export.php b/includes/Export.php index e530b88a5b..695a7f707d 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -476,7 +476,7 @@ class XmlDumpWriter { function openPage( $row ) { $out = " \n"; $title = Title::makeTitle( $row->page_namespace, $row->page_title ); - $out .= ' ' . Xml::elementClean( 'title', array(), $title->getPrefixedText() ) . "\n"; + $out .= ' ' . Xml::elementClean( 'title', array(), self::canonicalTitle( $title ) ) . "\n"; $out .= ' ' . Xml::element( 'ns', array(), strval( $row->page_namespace) ) . "\n"; $out .= ' ' . Xml::element( 'id', array(), strval( $row->page_id ) ) . "\n"; if ( $row->page_is_redirect ) { @@ -521,12 +521,6 @@ class XmlDumpWriter { $out .= $this->writeTimestamp( $row->rev_timestamp ); - if ( $row->rev_sha1 ) { - $out .= " " . Xml::element('sha1', null, strval($row->rev_sha1) ) . "\n"; - } else { - $out .= " \n"; - } - if ( $row->rev_deleted & Revision::DELETED_USER ) { $out .= " " . Xml::element( 'contributor', array( 'deleted' => 'deleted' ) ) . "\n"; } else { -- 2.20.1