From: Tim Starling Date: Thu, 18 Mar 2010 05:34:59 +0000 (+0000) Subject: Fixed object type unserialization. Based on WMF working copy patch, tested there. X-Git-Tag: 1.31.0-rc.0~37427 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=d0532c166beaa6210a35809fdb2e9f8264af0009;p=lhc%2Fweb%2Fwiklou.git Fixed object type unserialization. Based on WMF working copy patch, tested there. --- diff --git a/maintenance/storage/dumpRev.php b/maintenance/storage/dumpRev.php index 167d86c6f6..95404244b9 100644 --- a/maintenance/storage/dumpRev.php +++ b/maintenance/storage/dumpRev.php @@ -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 ) ) {