From 03461d2c4f3eb6e91282b638d91801349a4b27bf Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 2 Mar 2009 18:52:57 +0000 Subject: [PATCH] (bug 17761) "show/hide" link in page history in now works for the first displayed revision if it's not the current one --- RELEASE-NOTES | 2 ++ includes/PageHistory.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2dd0deda3a..f012f1ae00 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -232,6 +232,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 17707) Show file destination as plain text if &wpForReUpload=1 * (bug 10172) Moved setting of "changed since last visit" flags out of the job queue +* (bug 17761) "show/hide" link in page history in now works for the first + displayed revision if it's not the current one == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions diff --git a/includes/PageHistory.php b/includes/PageHistory.php index cbef1f4ca9..fd479434da 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -266,7 +266,7 @@ class PageHistory { $s = "($curlink) ($lastlink) $arbitrary"; if( $wgUser->isAllowed( 'deleterevision' ) ) { - if( $firstInList ) { + if( $latest ) { // We don't currently handle well changing the top revision's settings $del = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ), '('.$this->message['rev-delundel'].')' ); } else if( !$rev->userCan( Revision::DELETED_RESTRICTED ) ) { -- 2.20.1