blob: 62562d89244f5a7a3d6eddf60b3f58eb75d2df02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?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);
}
}
}
|