Fixed object type unserialization. Based on WMF working copy patch, tested there.
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 18 Mar 2010 05:34:59 +0000 (05:34 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 18 Mar 2010 05:34:59 +0000 (05:34 +0000)
maintenance/storage/dumpRev.php

index 167d86c..9540424 100644 (file)
@@ -62,7 +62,8 @@ class DumpRev extends Maintenance {
                        $text = gzinflate( $text );
                }
                if ( in_array( 'object', $flags ) ) {
-                       $text = unserialize( $text );
+                       $obj = unserialize( $text );
+                       $text = $obj->getText();
                }
        
                if ( is_object( $text ) ) {