http://www.mediawiki.org/wiki/Special:Code/MediaWiki/79856

Revision: 79856
Author:   robla
Date:     2011-01-08 03:11:06 +0000 (Sat, 08 Jan 2011)
Log Message:
-----------
Bug 26563: Add bytes changed per revision for stub and full article dumps

Modified Paths:
--------------
    trunk/phase3/includes/Export.php

Modified: trunk/phase3/includes/Export.php
===================================================================
--- trunk/phase3/includes/Export.php    2011-01-08 01:33:42 UTC (rev 79855)
+++ trunk/phase3/includes/Export.php    2011-01-08 03:11:06 UTC (rev 79856)
@@ -354,7 +354,7 @@
         * @return string
         */
        function schemaVersion() {
-               return "0.4";
+               return "0.5";
        }
 
        /**
@@ -511,12 +511,12 @@
                        // 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";
                }
 


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to