From c70e19343d495ce76a19765f938c23bb3248e182 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 27 Mar 2009 20:34:16 +0000 Subject: [PATCH] Don't show unclickable show/hide links for suppression log --- includes/LogEventsList.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 5669b9766e..9d2de44ada 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -359,16 +359,15 @@ class LogEventsList { $revdel = SpecialPage::getTitleFor( 'Revisiondelete' ); // If event was hidden from sysops if( !self::userCan( $row, LogPage::DELETED_RESTRICTED ) ) { - $del = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ), '('.$this->message['rev-delundel'].')' ); + $del = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ), + '('.$this->message['rev-delundel'].')' ); } else if( $row->log_type == 'suppress' ) { - // No one should be hiding from the oversight log - $del = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ), '('.$this->message['rev-delundel'].')' ); + $del = ''; // No one should be hiding from the oversight log } else { $target = SpecialPage::getTitleFor( 'Log', $row->log_type ); - $query = array( 'target' => $target->getPrefixedDBkey(), - 'logid' => $row->log_id - ); - $del = $this->skin->revDeleteLink( $query, self::isDeleted( $row, LogPage::DELETED_RESTRICTED ) ); + $query = array( 'target' => $target->getPrefixedDBkey(), 'logid' => $row->log_id ); + $del = $this->skin->revDeleteLink( $query, + self::isDeleted( $row, LogPage::DELETED_RESTRICTED ) ); } return $del; } @@ -381,7 +380,8 @@ class LogEventsList { * @return bool */ public static function typeAction( $row, $type, $action, $right='' ) { - $match = is_array($type) ? in_array($row->log_type,$type) : $row->log_type == $type; + $match = is_array($type) ? + in_array($row->log_type,$type) : $row->log_type == $type; if( $match ) { $match = is_array($action) ? in_array($row->log_action,$action) : $row->log_action == $action; -- 2.20.1