mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
63ce0bd4ec
commit
ec20c7a425
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user