* Fix regression in Special:Undelete for revisions deleted under MediaWiki 1.4
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 8 Nov 2006 12:31:20 +0000 (12:31 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 8 Nov 2006 12:31:20 +0000 (12:31 +0000)
  with compression or legacy encoding

RELEASE-NOTES
includes/SpecialUndelete.php

index 7dcd45b..b3e9beb 100644 (file)
@@ -157,6 +157,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   recently used IP of a user when they are blocked.
 * Add an index on (rc_user_text,rc_timestamp) on the recentchanges table. This will 
   make CheckUser.php and the new retroactive autoblock functionality faster.
+* Fix regression in Special:Undelete for revisions deleted under MediaWiki 1.4
+  with compression or legacy encoding
+
 
 == Languages updated ==
 
index 299cb23..421063e 100644 (file)
@@ -139,7 +139,9 @@ class PageArchive {
                        return new Revision( array(
                                'page'       => $this->title->getArticleId(),
                                'id'         => $row->ar_rev_id,
-                               'text'       => ($row->ar_text_id ? null : $row->ar_text),
+                               'text'       => ($row->ar_text_id
+                                       ? null
+                                       : Revision::getRevisionText( $row, 'ar_' ) ),
                                'comment'    => $row->ar_comment,
                                'user'       => $row->ar_user,
                                'user_text'  => $row->ar_user_text,