PDF rausgenommen
This commit is contained in:
30
msd2/tracking/piwik/plugins/GeoIp2/GeoIp2.php
Normal file
30
msd2/tracking/piwik/plugins/GeoIp2/GeoIp2.php
Normal file
@ -0,0 +1,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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user