From: Rob Lanphier Date: Sat, 8 Jan 2011 03:11:06 +0000 (+0000) Subject: Bug 26563: Add bytes changed per revision for stub and full article dumps X-Git-Tag: 1.31.0-rc.0~32700 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=117ed1ef5d7080a4778f2b3d51b9a7abbf6bff20;p=lhc%2Fweb%2Fwiklou.git Bug 26563: Add bytes changed per revision for stub and full article dumps --- diff --git a/includes/Export.php b/includes/Export.php index 22d6a1fe82..06e4565427 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -354,7 +354,7 @@ class XmlDumpWriter { * @return string */ function schemaVersion() { - return "0.4"; + return "0.5"; } /** @@ -511,12 +511,12 @@ class XmlDumpWriter { // Raw text from the database may have invalid chars $text = strval( Revision::getRevisionText( $row ) ); $out .= " " . Xml::elementClean( 'text', - array( 'xml:space' => 'preserve' ), + array( 'xml:space' => 'preserve', 'bytes' => $row->rev_len ), strval( $text ) ) . "\n"; } else { // Stub output $out .= " " . Xml::element( 'text', - array( 'id' => $row->rev_text_id ), + array( 'id' => $row->rev_text_id, 'bytes' => $row->rev_len ), "" ) . "\n"; }