From: Aaron Schulz Date: Fri, 27 Mar 2009 20:34:16 +0000 (+0000) Subject: Don't show unclickable show/hide links for suppression log X-Git-Tag: 1.31.0-rc.0~42319 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=c70e19343d495ce76a19765f938c23bb3248e182;p=lhc%2Fweb%2Fwiklou.git Don't show unclickable show/hide links for suppression log --- 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;