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
path: root/core
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-09-17 06:20:46 +0400
committermattab <matthieu.aubry@gmail.com>2013-09-17 07:45:19 +0400
commitbd09583b7900b68ceffb26a2206b117bdd2e6dd0 (patch)
treeace0eca02606db841bcbd90b74e36d0fbfd199da /core
parent283a3fa3ccea5ade61ece95c50918e0dfdf0beef (diff)
Tracker moving last remaining parameter value not yet in Request, to the Request object
Diffstat (limited to 'core')
-rw-r--r--core/DbHelper.php2
-rw-r--r--core/Tracker/Request.php1
-rw-r--r--core/Tracker/VisitExcluded.php2
3 files changed, 2 insertions, 3 deletions
diff --git a/core/DbHelper.php b/core/DbHelper.php
index 5ed49878d1..67f4560192 100644
--- a/core/DbHelper.php
+++ b/core/DbHelper.php
@@ -8,10 +8,8 @@
* @category Piwik
* @package PluginsFunctions
*/
-
namespace Piwik;
-
use Exception;
use Piwik\Db\Adapter;
use Piwik\Db\Schema;
diff --git a/core/Tracker/Request.php b/core/Tracker/Request.php
index 93075113a0..0687090245 100644
--- a/core/Tracker/Request.php
+++ b/core/Tracker/Request.php
@@ -239,6 +239,7 @@ class Request
'idgoal' => array(-1, 'int'),
// other
+ 'bots' => array(0, 'int'),
'dp' => array(0, 'int'),
'rec' => array(false, 'int'),
'new_visit' => array(0, 'int'),
diff --git a/core/Tracker/VisitExcluded.php b/core/Tracker/VisitExcluded.php
index e9af532eea..1abe850651 100644
--- a/core/Tracker/VisitExcluded.php
+++ b/core/Tracker/VisitExcluded.php
@@ -138,7 +138,7 @@ class VisitExcluded
*/
protected function isNonHumanBot()
{
- $allowBots = Common::getRequestVar('bots', false) != false;
+ $allowBots = $this->request->getParam('bots');
return !$allowBots
&& (strpos($this->userAgent, 'Googlebot') !== false // Googlebot
|| strpos($this->userAgent, 'Google Web Preview') !== false // Google Instant