r48828 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48827‎ | r48828 | r48829 >
Date:14:52, 25 March 2009
Author:aaron
Status:ok
Tags:
Comment:
Add suppression block log if allowed
Modified paths:
  • /trunk/phase3/includes/specials/SpecialBlockip.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialBlockip.php
@@ -560,7 +560,7 @@
561561 global $wgUser;
562562 $out->addHTML( Xml::element( 'h2', NULL, LogPage::logName( 'block' ) ) );
563563 $count = LogEventsList::showLogExtract( $out, 'block', $title->getPrefixedText(), '', 10 );
564 - if($count > 10){
 564+ if( $count > 10 ) {
565565 $out->addHTML( $wgUser->getSkin()->link(
566566 SpecialPage::getTitleFor( 'Log' ),
567567 wfMsgHtml( 'blocklog-fulllog' ),
@@ -569,6 +569,12 @@
570570 'type' => 'block',
571571 'page' => $title->getPrefixedText() ) ) );
572572 }
 573+ // Add suppression block entries if allowed
 574+ if( $wgUser->isAllowed('hideuser') ) {
 575+ $out->addHTML( Xml::element( 'h2', NULL, LogPage::logName( 'suppress' ) ) );
 576+ LogEventsList::showLogExtract( $out, 'suppress', $title->getPrefixedText(), '',
 577+ 10, array('log_action' => array('block','reblock','unblock')) );
 578+ }
573579 }
574580
575581 /**

Status & tagging log