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:
authormattpiwik <matthieu.aubry@gmail.com>2012-02-08 07:07:02 +0400
committermattpiwik <matthieu.aubry@gmail.com>2012-02-08 07:07:02 +0400
commit13f91b4073ebbc3642e87f40dd58e675acd11956 (patch)
tree7e36d48057850d59b1ab2da1b14552ea8055da39 /plugins/VisitorGenerator/Controller.php
parent510c8c7077933d30f9526e9a4f2a891ad8599685 (diff)
VisitorGenerator: Do not set forced IP if already set from in logs to replay
git-svn-id: http://dev.piwik.org/svn/trunk@5780 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/VisitorGenerator/Controller.php')
-rw-r--r--plugins/VisitorGenerator/Controller.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/VisitorGenerator/Controller.php b/plugins/VisitorGenerator/Controller.php
index e58ace0e13..2234a19b97 100644
--- a/plugins/VisitorGenerator/Controller.php
+++ b/plugins/VisitorGenerator/Controller.php
@@ -132,7 +132,11 @@ class Piwik_VisitorGenerator_Controller extends Piwik_Controller_Admin
$ip = strlen($ip) < 10 ? "13.5.111.3" : $ip;
// Force date/ip & authenticate
- $url .= "&cdt=" . urlencode($datetime) . "&cip=" . $ip;
+ $url .= "&cdt=" . urlencode($datetime);
+ if(strpos($url, 'cip') === false)
+ {
+ $url .= "&cip=" . $ip;
+ }
$url .= "&token_auth=" . Piwik::getCurrentUserTokenAuth();
$url = $prefix . "?" . $url;