Enable show/hide link on diff to cur (consistency)
[lhc/web/wiklou.git] / 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 = "   $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 {