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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-10-22 08:39:01 +0400
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-10-29 07:47:51 +0300
commitbbbf9acea29e10b9b9b2da1def68fbebc1efef6c (patch)
tree411dfffb5b0dcbb1923c54dadd49a6d991248307 /misc/others
parentd9aef0c397045484a3848106b57de99f7cdeddbe (diff)
Extracted the Piwik\IP class into a standalone Network component
Diffstat (limited to 'misc/others')
-rwxr-xr-xmisc/others/geoipUpdateRows.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/misc/others/geoipUpdateRows.php b/misc/others/geoipUpdateRows.php
index a7564d25ba..5f36ed5e7d 100755
--- a/misc/others/geoipUpdateRows.php
+++ b/misc/others/geoipUpdateRows.php
@@ -1,10 +1,8 @@
<?php
use Piwik\Common;
-use Piwik\Config;
use Piwik\Db;
-use Piwik\FrontController;
-use Piwik\IP;
use Piwik\Log;
+use Piwik\Network\IPUtils;
use Piwik\Piwik;
use Piwik\Plugins\UserCountry\LocationProvider\GeoIp\Pecl;
use Piwik\Plugins\UserCountry\LocationProvider;
@@ -183,7 +181,7 @@ for (; $start < $end; $start += $limit) {
continue;
}
- $ip = IP::N2P($row['location_ip']);
+ $ip = IPUtils::binaryToStringIP($row['location_ip']);
$location = $provider->getLocation(array('ip' => $ip));
if (!empty($location[LocationProvider::COUNTRY_CODE_KEY])) {