Add suppression block log if allowed
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 25 Mar 2009 14:52:28 +0000 (14:52 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 25 Mar 2009 14:52:28 +0000 (14:52 +0000)
includes/specials/SpecialBlockip.php

index b5e5f20..e808eef 100644 (file)
@@ -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')) );
+               }
        }
 
        /**