From 4ce2ae3eb1f32dd6590d436e702f17cc38f66bba Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 27 Nov 2006 02:43:36 +0000 Subject: [PATCH] --- includes/Block.php | 4 ++-- includes/IP.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Block.php b/includes/Block.php index 592471cf80..97b1f43e91 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -241,10 +241,10 @@ class Block /** * Determine if a given integer IPv4 address is in a given CIDR network - * @deprecated Use IP::isAddressInRange + * @deprecated Use IP::isInRange */ function isAddressInRange( $addr, $range ) { - return IP::isAddressInRange( $addr, $range ); + return IP::isInRange( $addr, $range ); } function initFromRow( $row ) diff --git a/includes/IP.php b/includes/IP.php index 5bd2a2363f..14addb9496 100644 --- a/includes/IP.php +++ b/includes/IP.php @@ -214,7 +214,7 @@ class IP { * @param $range The range to check the given address against. * @return bool Whether or not the given address is in the given range. */ - function isInRange( $addr, $range ) { + public static function isInRange( $addr, $range ) { $unsignedIP = IP::toUnsigned($addr); list( $start, $end ) = IP::parseRange($range); -- 2.20.1