Add the new SHA1 revision field to the XML export, add SHA1 field to export-0.6.xsd...
[lhc/web/wiklou.git] / includes / Export.php
index 695a7f7..7773d03 100644 (file)
@@ -486,6 +486,13 @@ class XmlDumpWriter {
                                $out .= '    ' . Xml::element( 'redirect', array( 'title' => self::canonicalTitle( $redirect ) ) ) . "\n";
                        }
                }
+               
+               if ( $row->rev_sha1 ) {
+                       $out .= "      " . Xml::element('sha1', null, strval($row->rev_sha1) ) . "\n";
+               } else {
+                       $out .= "      <sha1/>\n";
+               }
+               
                if ( $row->page_restrictions != '' ) {
                        $out .= '    ' . Xml::element( 'restrictions', array(),
                                strval( $row->page_restrictions ) ) . "\n";