From: Siebrand Mazeland Date: Sun, 27 Sep 2009 23:18:45 +0000 (+0000) Subject: * support GENDER in 'blocklog-showlog' and 'blocklog-showsuppresslog' X-Git-Tag: 1.31.0-rc.0~39503 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=ebef0b9886bbf98a6098f18a7690289026b0bfb5;p=lhc%2Fweb%2Fwiklou.git * support GENDER in 'blocklog-showlog' and 'blocklog-showsuppresslog' * break long lines --- 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 + ) + ); } }