* support GENDER in 'blocklog-showlog' and 'blocklog-showsuppresslog'
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Sun, 27 Sep 2009 23:18:45 +0000 (23:18 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Sun, 27 Sep 2009 23:18:45 +0000 (23:18 +0000)
* break long lines

includes/specials/SpecialBlockip.php

index a85285c..2d9ab1c 100644 (file)
@@ -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
+                               )
+                       );
                }
        }