|
@@ 593-595 (lines=3) @@
|
| 590 |
|
$status->fatal( 'ip_range_invalid' ); |
| 591 |
|
} |
| 592 |
|
|
| 593 |
|
if ( IP::isIPv4( $ip ) && $range < $wgBlockCIDRLimit['IPv4'] ) { |
| 594 |
|
$status->fatal( 'ip_range_toolarge', $wgBlockCIDRLimit['IPv4'] ); |
| 595 |
|
} |
| 596 |
|
|
| 597 |
|
if ( IP::isIPv6( $ip ) && $range < $wgBlockCIDRLimit['IPv6'] ) { |
| 598 |
|
$status->fatal( 'ip_range_toolarge', $wgBlockCIDRLimit['IPv6'] ); |
|
@@ 597-599 (lines=3) @@
|
| 594 |
|
$status->fatal( 'ip_range_toolarge', $wgBlockCIDRLimit['IPv4'] ); |
| 595 |
|
} |
| 596 |
|
|
| 597 |
|
if ( IP::isIPv6( $ip ) && $range < $wgBlockCIDRLimit['IPv6'] ) { |
| 598 |
|
$status->fatal( 'ip_range_toolarge', $wgBlockCIDRLimit['IPv6'] ); |
| 599 |
|
} |
| 600 |
|
} elseif ( $type == Block::TYPE_IP ) { |
| 601 |
|
# All is well |
| 602 |
|
} else { |