(no commit message)
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 27 Nov 2006 02:43:36 +0000 (02:43 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 27 Nov 2006 02:43:36 +0000 (02:43 +0000)
includes/Block.php
includes/IP.php

index 592471c..97b1f43 100644 (file)
@@ -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 )
index 5bd2a23..14addb9 100644 (file)
@@ -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);