From 130b398d8ee1d994df48180d0dab6a4bc5957730 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 8 Nov 2006 12:31:20 +0000 Subject: [PATCH] * Fix regression in Special:Undelete for revisions deleted under MediaWiki 1.4 with compression or legacy encoding --- RELEASE-NOTES | 3 +++ includes/SpecialUndelete.php | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 7dcd45b440..b3e9beb10a 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index 299cb232ed..421063ef30 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -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, -- 2.20.1