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/js
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-04-06 09:47:03 +0300
committerdiosmosis <benaka@piwik.pro>2015-04-06 09:47:03 +0300
commitc13355116a724d0ccf9671cdced207e0c71fe2d4 (patch)
tree70eca6966403efbe9e72367c7500b6572d22a1b2 /js
parent91abee26afb53a61a324c757234baecf6273f67c (diff)
Make sure environment is setup in js/tracker.php (since it goes through HttpProxy).
Diffstat (limited to 'js')
-rw-r--r--js/tracker.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/tracker.php b/js/tracker.php
index b3191f9c49..c7c546f46e 100644
--- a/js/tracker.php
+++ b/js/tracker.php
@@ -47,6 +47,9 @@ if (!defined("PIWIK_KEEP_JS_TRACKER_COMMENT")
$byteStart = 369; // length of comment header in bytes
}
+$environment = new \Piwik\Application\Environment(null);
+$environment->init();
+
ProxyHttp::serverStaticFile($file, "application/javascript; charset=UTF-8", $daysExpireFarFuture, $byteStart, $byteEnd);
exit; \ No newline at end of file