Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4159
op_rngblocks.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 9:52 PM
2014-11-21 21:52:23 (UTC+0)
Size
795 B
Referenced Files
None
Subscribers
None
op_rngblocks.diff
View Options
Index: /home/amidaniel/php/mediawiki/phase3/includes/OutputPage.php
===================================================================
--- /home/amidaniel/php/mediawiki/phase3/includes/OutputPage.php (revision 22577)
+++ /home/amidaniel/php/mediawiki/phase3/includes/OutputPage.php (working copy)
@@ -786,7 +786,12 @@
$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 ) {
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3724
Default Alt Text
op_rngblocks.diff (795 B)
Attached To
Mode
T12076: Make blockIDs searchable in the block log
Attached
Detach File
Event Timeline
Log In to Comment