aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorAaron Schulz <aschulz@wikimedia.org>2012-06-03 10:09:08 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2012-06-03 10:09:08 +0000
commitbc789ee4e6d2e3b613acba35633e421ea06bd565 (patch)
tree443d993da5018242d571d8690bac2b883b373788 /includes
parent98aaf7b52b4d43343869fba8d0aca98319a1739f (diff)
parent4e20a471ad9817fbaab48668ff3f42850825eac0 (diff)
downloadmediawikicore-bc789ee4e6d2e3b613acba35633e421ea06bd565.tar.gz
mediawikicore-bc789ee4e6d2e3b613acba35633e421ea06bd565.zip
Merge "reverse text/sha1 output in export to match xsd"
Diffstat (limited to 'includes')
-rw-r--r--includes/Export.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/Export.php b/includes/Export.php
index c73824dda12e..0bfcd7455529 100644
--- a/includes/Export.php
+++ b/includes/Export.php
@@ -644,6 +644,12 @@ class XmlDumpWriter {
$out .= " " . Xml::elementClean( 'comment', array(), strval( $row->rev_comment ) ) . "\n";
}
+ if ( $row->rev_sha1 && !( $row->rev_deleted & Revision::DELETED_TEXT ) ) {
+ $out .= " " . Xml::element('sha1', null, strval( $row->rev_sha1 ) ) . "\n";
+ } else {
+ $out .= " <sha1/>\n";
+ }
+
$text = '';
if ( $row->rev_deleted & Revision::DELETED_TEXT ) {
$out .= " " . Xml::element( 'text', array( 'deleted' => 'deleted' ) ) . "\n";
@@ -660,12 +666,6 @@ class XmlDumpWriter {
"" ) . "\n";
}
- if ( $row->rev_sha1 && !( $row->rev_deleted & Revision::DELETED_TEXT ) ) {
- $out .= " " . Xml::element('sha1', null, strval( $row->rev_sha1 ) ) . "\n";
- } else {
- $out .= " <sha1/>\n";
- }
-
wfRunHooks( 'XmlDumpWriterWriteRevision', array( &$this, &$out, $row, $text ) );
$out .= " </revision>\n";