From: Brion Vibber Date: Thu, 12 Jan 2012 22:17:54 +0000 (+0000) Subject: Revert r108764: doesn't appear to do what it says in the description, and no explanat... X-Git-Tag: 1.31.0-rc.0~25318 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=707dfa9235c74c39f3d7ced1594df1ece1391369;p=lhc%2Fweb%2Fwiklou.git 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?) --- 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 {