diff options
Diffstat (limited to 'plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php')
-rw-r--r-- | plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php b/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php index 15e502dfa9..18fe451100 100644 --- a/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php +++ b/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php @@ -44,7 +44,6 @@ class GeolocationDiagnostic implements Diagnostic $allProviders = LocationProvider::getAllProviderInfo(); $isNotRecommendedProvider = in_array($currentProviderId, array( LocationProvider\DefaultProvider::ID, - LocationProvider\GeoIp\ServerBased::ID, GeoIp2\ServerModule::ID)); $isProviderInstalled = (isset($allProviders[$currentProviderId]['status']) && $allProviders[$currentProviderId]['status'] == LocationProvider::INSTALLED); @@ -53,8 +52,8 @@ class GeolocationDiagnostic implements Diagnostic } if ($isProviderInstalled) { - $comment = $this->translator->translate('UserCountry_GeoIpLocationProviderNotRecomnended') . ' '; - $message = Manager::getInstance()->isPluginActivated('GeoIp2') ? 'GeoIp2_LocationProviderDesc_ServerModule2' : 'UserCountry_GeoIpLocationProviderDesc_ServerBased2'; + $comment = $this->translator->translate('GeoIp2_GeoIPLocationProviderNotRecommended') . ' '; + $message = 'GeoIp2_LocationProviderDesc_ServerModule2'; $comment .= $this->translator->translate($message, array( '<a href="https://matomo.org/docs/geo-locate/" rel="noreferrer noopener" target="_blank">', '', '', '</a>' )); |