From 7a6c1eb1de6b84e0190231b4d4477656b92ae3c0 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 7 Jun 2012 10:14:28 +0200 Subject: [PATCH] include sha1 in export. this went missing somehow. --- includes/Export.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/Export.php b/includes/Export.php index 380729e6c6..e453ce0f3d 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -654,6 +654,12 @@ class XmlDumpWriter { $out .= " " . Xml::element('format', array( 'mime' => $mime ), strval( $row->rev_content_format ) ) . "\n"; } + if ( $row->rev_sha1 && !( $row->rev_deleted & Revision::DELETED_TEXT ) ) { + $out .= " " . Xml::element('sha1', null, strval( $row->rev_sha1 ) ) . "\n"; + } else { + $out .= " \n"; + } + $text = ''; if ( $row->rev_deleted & Revision::DELETED_TEXT ) { $out .= " " . Xml::element( 'text', array( 'deleted' => 'deleted' ) ) . "\n"; -- 2.20.1