From 6302b56bf9ce756fd0dd278712ffde484bfaf65d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 25 Mar 2009 14:52:28 +0000 Subject: [PATCH] Add suppression block log if allowed --- includes/specials/SpecialBlockip.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialBlockip.php b/includes/specials/SpecialBlockip.php index b5e5f20ced..e808eef470 100644 --- a/includes/specials/SpecialBlockip.php +++ b/includes/specials/SpecialBlockip.php @@ -560,7 +560,7 @@ class IPBlockForm { global $wgUser; $out->addHTML( Xml::element( 'h2', NULL, LogPage::logName( 'block' ) ) ); $count = LogEventsList::showLogExtract( $out, 'block', $title->getPrefixedText(), '', 10 ); - if($count > 10){ + if( $count > 10 ) { $out->addHTML( $wgUser->getSkin()->link( SpecialPage::getTitleFor( 'Log' ), wfMsgHtml( 'blocklog-fulllog' ), @@ -569,6 +569,12 @@ class IPBlockForm { 'type' => 'block', 'page' => $title->getPrefixedText() ) ) ); } + // Add suppression block entries if allowed + if( $wgUser->isAllowed('hideuser') ) { + $out->addHTML( Xml::element( 'h2', NULL, LogPage::logName( 'suppress' ) ) ); + LogEventsList::showLogExtract( $out, 'suppress', $title->getPrefixedText(), '', + 10, array('log_action' => array('block','reblock','unblock')) ); + } } /** -- 2.20.1