r22623 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22622‎ | r22623 | r22624 >
Date:07:57, 1 June 2007
Author:amidaniel
Status:old
Tags:
Comment:
(bug 10076) If a user is blocked as the result of a rangeblock, add the effective rangeblock to the output of MediaWiki:Blockedtext
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -792,7 +792,12 @@
793793 $msg = 'blockedtext';
794794 }
795795
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 ) );
797802
798803 # Don't auto-return to special pages
799804 if( $return ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r22641(bug 10076) Modified so as to output whoever the original blockee is, regardl...amidaniel00:03, 2 June 2007
r22652Merged revisions 22619-22651 via svnmerge from...david06:10, 2 June 2007