From ebef0b9886bbf98a6098f18a7690289026b0bfb5 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sun, 27 Sep 2009 23:18:45 +0000 Subject: [PATCH] * support GENDER in 'blocklog-showlog' and 'blocklog-showsuppresslog' * break long lines --- includes/specials/SpecialBlockip.php | 39 +++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialBlockip.php b/includes/specials/SpecialBlockip.php index a85285c064..2d9ab1c854 100644 --- a/includes/specials/SpecialBlockip.php +++ b/includes/specials/SpecialBlockip.php @@ -585,13 +585,44 @@ class IPBlockForm { private function showLogFragment( $out, $title ) { global $wgUser; - LogEventsList::showLogExtract( $out, 'block', $title->getPrefixedText(), '', - array( 'lim' => 10, 'msgKey' => array( 'blocklog-showlog' ), 'showIfEmpty' => false ) ); + + // Used to support GENDER in 'blocklog-showlog' and 'blocklog-showsuppresslog' + $userBlocked = $title->getText(); + + LogEventsList::showLogExtract( + $out, + 'block', + $title->getPrefixedText(), + '', + array( + 'lim' => 10, + 'msgKey' => array( + 'blocklog-showlog', + $userBlocked + ), + 'showIfEmpty' => false + ) + ); + // Add suppression block entries if allowed if( $wgUser->isAllowed( 'hideuser' ) ) { LogEventsList::showLogExtract( $out, 'suppress', $title->getPrefixedText(), '', - array('lim' => 10, 'conds' => array('log_action' => array('block','reblock','unblock')), - 'msgKey' => array( 'blocklog-showsuppresslog' ), 'showIfEmpty' => false ) ); + array( + 'lim' => 10, + 'conds' => array( + 'log_action' => array( + 'block', + 'reblock', + 'unblock' + ) + ), + 'msgKey' => array( + 'blocklog-showsuppresslog', + $userBlocked + ), + 'showIfEmpty' => false + ) + ); } } -- 2.20.1