From a480678b11928e8e6b594a37743118adee06ac71 Mon Sep 17 00:00:00 2001 From: flashwave Date: Fri, 5 Oct 2018 13:04:43 +0200 Subject: [PATCH] // this doesn't work sadly --- src/Net/geoip.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Net/geoip.php b/src/Net/geoip.php index 5004650f..18617a0e 100644 --- a/src/Net/geoip.php +++ b/src/Net/geoip.php @@ -24,14 +24,7 @@ function geoip_cache(string $section, string $ipAddress, callable $value) function geoip_country(string $ipAddress) { - return geoip_cache('country', $ipAddress, function () { + return geoip_cache('country', $ipAddress, function () use ($ipAddress) { return $GLOBALS[MSZ_GEOIP_INSTANCE_STORE]->country($ipAddress); }); } - -function geoip_anonymous(string $ipAddress) -{ - return geoip_cache('anonymous', $ipAddress, function () { - return $GLOBALS[MSZ_GEOIP_INSTANCE_STORE]->anonymousIp($ipAddress); - }); -}