Fix disappearing autoblocker numbers
authorRob Church <robchurch@users.mediawiki.org>
Mon, 16 Jan 2006 03:16:25 +0000 (03:16 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 16 Jan 2006 03:16:25 +0000 (03:16 +0000)
WHY IN GOD'S NAME IS Block::mID NOT TREATED LIKE Block::mId?

includes/SpecialIpblocklist.php

index 1b88024..423117d 100644 (file)
@@ -221,14 +221,14 @@ class IPUnblockForm {
 
                # Prepare links to the block target's user and contribs. pages (as applicable, don't do it for autoblocks)
                if( $block->mAuto ) {
-                       $target = '#' . $block->mID; # Hide the IP addresses of auto-blocks; privacy
+                       $target = '#' . $block->mId; # Hide the IP addresses of auto-blocks; privacy
                } else {
                        $target = $sk->makeKnownLinkObj( Title::makeTitle( NS_USER, $block->mAddress ), $block->mAddress );
                        $target .= ' (' . $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Contributions' ), $msg['contribslink'], 'target=' . $block->mAddress ) . ')';
                }
                
                # Prep the address for the unblock link, masking autoblocks as before
-               $addr = $block->mAuto ? '#' . $block->mID : $block->mAddress;
+               $addr = $block->mAuto ? '#' . $block->mId : $block->mAddress;
                
                $formattedTime = $wgLang->timeanddate( $block->mTimestamp, true );