From: Aaron Schulz Date: Sat, 18 Jul 2009 02:51:41 +0000 (+0000) Subject: Enable show/hide link on diff to cur (consistency) X-Git-Tag: 1.31.0-rc.0~40859 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=2a763847ca1260a409843f1de17ff95a8294940d;p=lhc%2Fweb%2Fwiklou.git Enable show/hide link on diff to cur (consistency) --- diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index 1bce4f4da0..001d9bba9e 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -316,10 +316,7 @@ CONTROL; $ldel = $sk->revDeleteLink( $query, $this->mOldRev->isDeleted( Revision::DELETED_RESTRICTED ) ); } $ldel = "   $ldel "; - // We don't currently handle well changing the top revision's settings - if( $this->mNewRev->isCurrent() ) { - $rdel = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ), '('.wfMsgHtml( 'rev-delundel' ).')' ); - } else if( !$this->mNewRev->userCan( Revision::DELETED_RESTRICTED ) ) { + if( !$this->mNewRev->userCan( Revision::DELETED_RESTRICTED ) ) { // If revision was hidden from sysops $rdel = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ), '('.wfMsgHtml( 'rev-delundel' ).')' ); } else {