2023-01-23 11:03:31 +01:00

31 lines
685 B
PHP

<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\GeoIp2;
use Piwik\Plugins\UserCountry\LocationProvider;
/**
*
*/
class GeoIp2 extends \Piwik\Plugin
{
public function isTrackerPlugin()
{
return true;
}
public function deactivate()
{
// switch to default provider if GeoIP2 provider was in use
if (LocationProvider::getCurrentProvider() instanceof \Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2) {
LocationProvider::setCurrentProvider(LocationProvider\DefaultProvider::ID);
}
}
}