wfMsg( 'blocklist-userblocks' ) => 'userblocks',
wfMsg( 'blocklist-tempblocks' ) => 'tempblocks',
wfMsg( 'blocklist-addressblocks' ) => 'addressblocks',
+ wfMsg( 'blocklist-rangeblocks' ) => 'rangeblocks',
),
'flatlist' => true,
),
if( in_array( 'addressblocks', $this->options ) ) {
$conds[] = "ipb_user != 0 OR ipb_range_end > ipb_range_start";
}
+ if( in_array( 'rangeblocks', $this->options ) ) {
+ $conds[] = "ipb_range_end = ipb_range_start";
+ }
# Check for other blocks, i.e. global/tor blocks
$otherBlockLink = array();
'blocklist-userblocks' => 'Hide account blocks',
'blocklist-tempblocks' => 'Hide temporary blocks',
'blocklist-addressblocks' => 'Hide single IP blocks',
+'blocklist-rangeblocks' => 'Hide range blocks',
'blocklist-timestamp' => 'Timestamp',
'blocklist-target' => 'Target',
'blocklist-expiry' => 'Expires',