diff options
Diffstat (limited to 'plugins/UserCountry/LocationProvider/GeoIp.php')
-rwxr-xr-x | plugins/UserCountry/LocationProvider/GeoIp.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/UserCountry/LocationProvider/GeoIp.php b/plugins/UserCountry/LocationProvider/GeoIp.php index 247ae6035a..a20e3f0462 100755 --- a/plugins/UserCountry/LocationProvider/GeoIp.php +++ b/plugins/UserCountry/LocationProvider/GeoIp.php @@ -10,6 +10,7 @@ namespace Piwik\Plugins\UserCountry\LocationProvider; use Exception; use Piwik\Piwik; +use Piwik\Plugin\Manager; use Piwik\Plugins\UserCountry\LocationProvider; /** @@ -67,6 +68,11 @@ abstract class GeoIp extends LocationProvider } } + public function isVisible() + { + return !Manager::getInstance()->isPluginActivated('GeoIp2') || self::getCurrentProvider() instanceof GeoIp; + } + /** * Returns true if this provider has been setup correctly, the error message if * otherwise. |