From: Brion Vibber Date: Wed, 8 Nov 2006 12:31:20 +0000 (+0000) Subject: * Fix regression in Special:Undelete for revisions deleted under MediaWiki 1.4 X-Git-Tag: 1.31.0-rc.0~55253 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=130b398d8ee1d994df48180d0dab6a4bc5957730;p=lhc%2Fweb%2Fwiklou.git * Fix regression in Special:Undelete for revisions deleted under MediaWiki 1.4 with compression or legacy encoding --- 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,