Rename IP::isValidBlock to isValidRange, deprecating the former
[lhc/web/wiklou.git] / includes / Block.php
index 5066038..05e97b9 100644 (file)
@@ -1354,7 +1354,7 @@ class Block {
                                self::TYPE_IP
                        ];
 
-               } elseif ( IP::isValidBlock( $target ) ) {
+               } elseif ( IP::isValidRange( $target ) ) {
                        # Can't create a User from an IP range
                        return [ IP::sanitizeRange( $target ), self::TYPE_RANGE ];
                }