Revision: 47946 Author: ialex Date: 2009-03-02 18:52:57 +0000 (Mon, 02 Mar 2009)
Log Message: ----------- (bug 17761) "show/hide" link in page history in now works for the first displayed revision if it's not the current one Modified Paths: -------------- trunk/phase3/RELEASE-NOTES trunk/phase3/includes/PageHistory.php Modified: trunk/phase3/RELEASE-NOTES =================================================================== --- trunk/phase3/RELEASE-NOTES 2009-03-02 18:27:47 UTC (rev 47945) +++ trunk/phase3/RELEASE-NOTES 2009-03-02 18:52:57 UTC (rev 47946) @@ -232,6 +232,8 @@ * (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 Modified: trunk/phase3/includes/PageHistory.php =================================================================== --- trunk/phase3/includes/PageHistory.php 2009-03-02 18:27:47 UTC (rev 47945) +++ trunk/phase3/includes/PageHistory.php 2009-03-02 18:52:57 UTC (rev 47946) @@ -266,7 +266,7 @@ $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 ) ) { _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs