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
This commit is contained in:
Sean Harvey 2009-12-05 05:03:40 +00:00 committed by Sam Minnee
parent 3d8918fdeb
commit aebbda34d1

View File

@ -343,7 +343,7 @@ class Geoip extends Object {
$status = true; $status = true;
foreach ($checks as $url => $expectedResponse) { foreach ($checks as $url => $expectedResponse) {
$response = ip2country($url); $response = self::ip2country($url);
if(!$response && $expectedResponse) { if(!$response && $expectedResponse) {
user_error("ip2country_check failed sanity check: ip2country($url) returned false. Expected code: '$expectedResponse'", E_USER_WARNING); user_error("ip2country_check failed sanity check: ip2country($url) returned false. Expected code: '$expectedResponse'", E_USER_WARNING);