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/Live/Visitor.php')
-rw-r--r--plugins/Live/Visitor.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Live/Visitor.php b/plugins/Live/Visitor.php
index db31fe886f..5d7441fc38 100644
--- a/plugins/Live/Visitor.php
+++ b/plugins/Live/Visitor.php
@@ -12,6 +12,7 @@ use Piwik\Piwik;
use Piwik\Common;
use Piwik\IP;
use Piwik\Tracker;
+use Piwik\Tracker\Visit;
/**
* @see plugins/Referers/functions.php
@@ -272,7 +273,7 @@ class Piwik_Live_Visitor
public function getRegionName()
{
$region = $this->getRegionCode();
- if ($region != '' && $region != Piwik_Tracker_Visit::UNKNOWN_CODE) {
+ if ($region != '' && $region != Visit::UNKNOWN_CODE) {
return Piwik_UserCountry_LocationProvider_GeoIp::getRegionNameFromCodes(
$this->details['location_country'], $region);
}