Fix fucked up unblock links in Special:Ipblocklist
authorRob Church <robchurch@users.mediawiki.org>
Sun, 15 Jan 2006 22:57:08 +0000 (22:57 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 15 Jan 2006 22:57:08 +0000 (22:57 +0000)
includes/SpecialIpblocklist.php

index 063b11b..1b88024 100644 (file)
@@ -227,6 +227,9 @@ class IPUnblockForm {
                        $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;
+               
                $formattedTime = $wgLang->timeanddate( $block->mTimestamp, true );
 
                if ( $block->mExpiry === "" ) {