BUGFIX Fixed undefined function error ip2country() in Geoip::ipcountry_check() (from r94416)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@95606 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-12-16 05:40:34 +00:00
parent 63ce0bd4ec
commit ec20c7a425

View File

@ -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);