Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UserCountry/LocationProvider/GeoIp.php')
-rwxr-xr-xplugins/UserCountry/LocationProvider/GeoIp.php6
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.