Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -792,7 +792,12 @@ |
793 | 793 | $msg = 'blockedtext'; |
794 | 794 | } |
795 | 795 | |
796 | | - $this->addWikiText( wfMsg( $msg, $link, $reason, $ip, $name, $blockid, $blockExpiry ) ); |
| 796 | + //If it's a range block, get the range in CIDR and hand it back. |
| 797 | + if ($wgUser->mBlock->mRangeStart != $wgUser->mBlock->mRangeEnd) { |
| 798 | + $ipRange = $wgUser->mBlock->mAddress; |
| 799 | + } |
| 800 | + |
| 801 | + $this->addWikiText( wfMsg( $msg, $link, $reason, $ip, $name, $blockid, $blockExpiry, $ipRange ) ); |
797 | 802 | |
798 | 803 | # Don't auto-return to special pages |
799 | 804 | if( $return ) { |