diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-10-22 08:39:01 +0400 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-10-29 07:47:51 +0300 |
commit | bbbf9acea29e10b9b9b2da1def68fbebc1efef6c (patch) | |
tree | 411dfffb5b0dcbb1923c54dadd49a6d991248307 /plugins/Provider | |
parent | d9aef0c397045484a3848106b57de99f7cdeddbe (diff) |
Extracted the Piwik\IP class into a standalone Network component
Diffstat (limited to 'plugins/Provider')
-rw-r--r-- | plugins/Provider/Columns/Provider.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Provider/Columns/Provider.php b/plugins/Provider/Columns/Provider.php index c20b75ac9c..cba1b8b9f5 100644 --- a/plugins/Provider/Columns/Provider.php +++ b/plugins/Provider/Columns/Provider.php @@ -10,6 +10,7 @@ namespace Piwik\Plugins\Provider\Columns; use Piwik\Common; use Piwik\IP; +use Piwik\Network\IPUtils; use Piwik\Piwik; use Piwik\Plugin\Dimension\VisitDimension; use Piwik\Plugin\Segment; @@ -54,7 +55,7 @@ class Provider extends VisitDimension $ip = $request->getIp(); } - $ip = IP::N2P($ip); + $ip = IPUtils::binaryToStringIP($ip); // In case the IP was anonymized, we should not continue since the DNS reverse lookup will fail and this will slow down tracking if (substr($ip, -2, 2) == '.0') { |