Enable show/hide link on diff to cur (consistency)
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 18 Jul 2009 02:51:41 +0000 (02:51 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 18 Jul 2009 02:51:41 +0000 (02:51 +0000)
includes/diff/DifferenceEngine.php

index 1bce4f4..001d9bb 100644 (file)
@@ -316,10 +316,7 @@ CONTROL;
                                $ldel = $sk->revDeleteLink( $query, $this->mOldRev->isDeleted( Revision::DELETED_RESTRICTED ) );
                        }
                        $ldel = "&nbsp;&nbsp;&nbsp;$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 {