dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fec6f1
)
(bug 10076) If a user is blocked as the result of a rangeblock, add the effective...
author
Daniel Cannon
<amidaniel@users.mediawiki.org>
Fri, 1 Jun 2007 07:57:17 +0000
(07:57 +0000)
committer
Daniel Cannon
<amidaniel@users.mediawiki.org>
Fri, 1 Jun 2007 07:57:17 +0000
(07:57 +0000)
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
c86180a
..
f7030ee
100644
(file)
--- 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 ) {