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()
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:
parent
3d8918fdeb
commit
aebbda34d1
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user