From aebbda34d1405c4a2445b85d54e7c8f53458a986 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Sat, 5 Dec 2009 05:03:40 +0000 Subject: [PATCH] BUGFIX Fixed undefined function error ip2country() in Geoip::ipcountry_check() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@94416 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- integration/Geoip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/Geoip.php b/integration/Geoip.php index d4efd7e9c..06ffcf49a 100755 --- a/integration/Geoip.php +++ b/integration/Geoip.php @@ -343,7 +343,7 @@ class Geoip extends Object { $status = true; foreach ($checks as $url => $expectedResponse) { - $response = ip2country($url); + $response = self::ip2country($url); if(!$response && $expectedResponse) { user_error("ip2country_check failed sanity check: ip2country($url) returned false. Expected code: '$expectedResponse'", E_USER_WARNING);