From 2aba2fcdaf86296f08e195e05de4818d1ecc6691 Mon Sep 17 00:00:00 2001 From: Daniel Cannon Date: Fri, 1 Jun 2007 07:57:17 +0000 Subject: [PATCH] (bug 10076) If a user is blocked as the result of a rangeblock, add the effective rangeblock to the output of MediaWiki:Blockedtext --- includes/OutputPage.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index c86180aa32..f7030ee40f 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -792,7 +792,12 @@ class OutputPage { $msg = 'blockedtext'; } - $this->addWikiText( wfMsg( $msg, $link, $reason, $ip, $name, $blockid, $blockExpiry ) ); + //If it's a range block, get the range in CIDR and hand it back. + if ($wgUser->mBlock->mRangeStart != $wgUser->mBlock->mRangeEnd) { + $ipRange = $wgUser->mBlock->mAddress; + } + + $this->addWikiText( wfMsg( $msg, $link, $reason, $ip, $name, $blockid, $blockExpiry, $ipRange ) ); # Don't auto-return to special pages if( $return ) { -- 2.20.1