Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -359,16 +359,15 @@ |
360 | 360 | $revdel = SpecialPage::getTitleFor( 'Revisiondelete' ); |
361 | 361 | // If event was hidden from sysops |
362 | 362 | if( !self::userCan( $row, LogPage::DELETED_RESTRICTED ) ) { |
363 | | - $del = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ), '('.$this->message['rev-delundel'].')' ); |
| 363 | + $del = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ), |
| 364 | + '('.$this->message['rev-delundel'].')' ); |
364 | 365 | } else if( $row->log_type == 'suppress' ) { |
365 | | - // No one should be hiding from the oversight log |
366 | | - $del = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ), '('.$this->message['rev-delundel'].')' ); |
| 366 | + $del = ''; // No one should be hiding from the oversight log |
367 | 367 | } else { |
368 | 368 | $target = SpecialPage::getTitleFor( 'Log', $row->log_type ); |
369 | | - $query = array( 'target' => $target->getPrefixedDBkey(), |
370 | | - 'logid' => $row->log_id |
371 | | - ); |
372 | | - $del = $this->skin->revDeleteLink( $query, self::isDeleted( $row, LogPage::DELETED_RESTRICTED ) ); |
| 369 | + $query = array( 'target' => $target->getPrefixedDBkey(), 'logid' => $row->log_id ); |
| 370 | + $del = $this->skin->revDeleteLink( $query, |
| 371 | + self::isDeleted( $row, LogPage::DELETED_RESTRICTED ) ); |
373 | 372 | } |
374 | 373 | return $del; |
375 | 374 | } |
— | — | @@ -381,7 +380,8 @@ |
382 | 381 | * @return bool |
383 | 382 | */ |
384 | 383 | public static function typeAction( $row, $type, $action, $right='' ) { |
385 | | - $match = is_array($type) ? in_array($row->log_type,$type) : $row->log_type == $type; |
| 384 | + $match = is_array($type) ? |
| 385 | + in_array($row->log_type,$type) : $row->log_type == $type; |
386 | 386 | if( $match ) { |
387 | 387 | $match = is_array($action) ? |
388 | 388 | in_array($row->log_action,$action) : $row->log_action == $action; |