diff options
author | diosmosis <benaka@piwik.pro> | 2015-04-06 09:47:03 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-04-06 09:47:03 +0300 |
commit | c13355116a724d0ccf9671cdced207e0c71fe2d4 (patch) | |
tree | 70eca6966403efbe9e72367c7500b6572d22a1b2 /js | |
parent | 91abee26afb53a61a324c757234baecf6273f67c (diff) |
Make sure environment is setup in js/tracker.php (since it goes through HttpProxy).
Diffstat (limited to 'js')
-rw-r--r-- | js/tracker.php | 3 |
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 |