(bug 17761) "show/hide" link in page history in now works for the first displayed...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 2 Mar 2009 18:52:57 +0000 (18:52 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 2 Mar 2009 18:52:57 +0000 (18:52 +0000)
RELEASE-NOTES
includes/PageHistory.php

index 2dd0ded..f012f1a 100644 (file)
@@ -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
index cbef1f4..fd47943 100644 (file)
@@ -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 ) ) {