diff options
author | benakamoorthi <benaka.moorthi@gmail.com> | 2012-10-23 05:45:50 +0400 |
---|---|---|
committer | benakamoorthi <benaka.moorthi@gmail.com> | 2012-10-23 05:45:50 +0400 |
commit | d4a3345d1402f145eb43b3339293a0665846ad64 (patch) | |
tree | cd2bdcb9db09feb799c813eb440e7f5bf2239b73 | |
parent | ba1b3084b2a1e3ffea0b9cafe8ed5e167571f07e (diff) |
Refs #1823, do broken check w/ both GEOIP_ADDR & GEOIP_COUNTRY_CODE.
git-svn-id: http://dev.piwik.org/svn/trunk@7281 59fd770c-687e-43c8-a1e3-f5a4ff64c105
-rwxr-xr-x | plugins/UserCountry/LocationProvider/GeoIp/ServerBased.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/UserCountry/LocationProvider/GeoIp/ServerBased.php b/plugins/UserCountry/LocationProvider/GeoIp/ServerBased.php index 7b5b83537d..105d19e077 100755 --- a/plugins/UserCountry/LocationProvider/GeoIp/ServerBased.php +++ b/plugins/UserCountry/LocationProvider/GeoIp/ServerBased.php @@ -163,7 +163,8 @@ class Piwik_UserCountry_LocationProvider_GeoIp_ServerBased extends Piwik_UserCou */ public function isWorking() { - if (empty($_SERVER[self::TEST_SERVER_VAR])) + if (empty($_SERVER[self::TEST_SERVER_VAR]) + && empty($_SERVER[self::TEST_SERVER_VAR_ALT])) { return Piwik_Translate("UserCountry_CannotFindGeoIPServerVar", self::TEST_SERVER_VAR.' $_SERVER'); } |