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 'piwik.php')
-rw-r--r--piwik.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/piwik.php b/piwik.php
index 95cc6271f1..8eb43b39b4 100644
--- a/piwik.php
+++ b/piwik.php
@@ -48,6 +48,9 @@ require_once PIWIK_INCLUDE_PATH . '/core/Tracker/Cache.php';
require_once PIWIK_INCLUDE_PATH . '/core/Tracker/Request.php';
require_once PIWIK_INCLUDE_PATH . '/core/Cookie.php';
+$environment = new \Piwik\Application\Environment(null);
+$environment->init();
+
Tracker::loadTrackerEnvironment();
$tracker = new Tracker();