Index: trunk/phase3/includes/specials/SpecialBlock.php |
— | — | @@ -826,7 +826,7 @@ |
827 | 827 | * Return a comma-delimited list of "flags" to be passed to the log |
828 | 828 | * reader for this block, to provide more information in the logs |
829 | 829 | * @param $data Array from HTMLForm data |
830 | | - * @param $type Block::TYPE_ constant |
| 830 | + * @param $type Block::TYPE_ constant (USER, RANGE, or IP) |
831 | 831 | * @return array |
832 | 832 | */ |
833 | 833 | protected static function blockLogFlags( array $data, $type ) { |
— | — | @@ -845,7 +845,7 @@ |
846 | 846 | } |
847 | 847 | |
848 | 848 | # Same as anononly, this is not displayed when blocking an IP address |
849 | | - if( !$data['AutoBlock'] && $type != Block::TYPE_IP ){ |
| 849 | + if( !$data['AutoBlock'] && $type == Block::TYPE_USER ){ |
850 | 850 | // For grepping: message block-log-flags-noautoblock |
851 | 851 | $flags[] = 'noautoblock'; |
852 | 852 | } |