From 7ecebdc787a7f649aa1a00e33a93e891d87698a2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 6 Oct 2011 22:57:32 +0000 Subject: [PATCH] Don't add 'autoblock disabled' flag for IP range blocks --- includes/specials/SpecialBlock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialBlock.php b/includes/specials/SpecialBlock.php index 2bae9a6d1a..9c6674ae37 100644 --- a/includes/specials/SpecialBlock.php +++ b/includes/specials/SpecialBlock.php @@ -826,7 +826,7 @@ class SpecialBlock extends SpecialPage { * Return a comma-delimited list of "flags" to be passed to the log * reader for this block, to provide more information in the logs * @param $data Array from HTMLForm data - * @param $type Block::TYPE_ constant + * @param $type Block::TYPE_ constant (USER, RANGE, or IP) * @return array */ protected static function blockLogFlags( array $data, $type ) { @@ -845,7 +845,7 @@ class SpecialBlock extends SpecialPage { } # Same as anononly, this is not displayed when blocking an IP address - if( !$data['AutoBlock'] && $type != Block::TYPE_IP ){ + if( !$data['AutoBlock'] && $type == Block::TYPE_USER ){ // For grepping: message block-log-flags-noautoblock $flags[] = 'noautoblock'; } -- 2.20.1