Replacing the manual user and user talk links of the blocker in Special:Ipblocklist...
authorRotem Liss <rotem@users.mediawiki.org>
Tue, 21 Nov 2006 18:26:55 +0000 (18:26 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Tue, 21 Nov 2006 18:26:55 +0000 (18:26 +0000)
includes/Block.php
includes/SpecialIpblocklist.php

index 547bf53..93458b8 100644 (file)
@@ -544,6 +544,16 @@ class Block
                return $this->mNetworkBits;
        }*/
 
+       /**
+        * @return The blocker user ID.
+        */
+       public function getBy() {
+               return $this->mBy;
+       }
+
+       /**
+        * @return The blocker user name.
+        */
        function getByName()
        {
                if ( $this->mByName === false ) {
index 9b10f42..84f0a9c 100644 (file)
@@ -250,9 +250,10 @@ class IPUnblockForm {
                }
 
                # Prepare links to the blocker's user and talk pages
+               $blocker_id = $block->getBy();
                $blocker_name = $block->getByName();
-               $blocker = $sk->MakeLinkObj( Title::makeTitle( NS_USER, $blocker_name ), $blocker_name );
-               $blocker .= ' (' . $sk->makeLinkObj( Title::makeTitle( NS_USER_TALK, $blocker_name ), $wgLang->getNsText( NS_TALK ) ) . ')';
+               $blocker = $sk->userLink( $blocker_id, $blocker_name );
+               $blocker .= $sk->userToolLinks( $blocker_id, $blocker_name );
 
                # Prepare links to the block target's user and contribs. pages (as applicable, don't do it for autoblocks)
                if( $block->mAuto ) {