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:
authorrobocoder <anthon.pang@gmail.com>2010-10-16 23:23:11 +0400
committerrobocoder <anthon.pang@gmail.com>2010-10-16 23:23:11 +0400
commitf20600d85a9d8e93f79922dc61ab54681c68ffd7 (patch)
tree1a43082809cfa0fa9c43935803e34ea88f2e60a1 /js/index.php
parent70d6bcdf01c4566686ea8c9522222506965ea96c (diff)
fix piwik.js proxy to serve the yui compressed .js file
git-svn-id: http://dev.piwik.org/svn/trunk@3255 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'js/index.php')
-rw-r--r--js/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/index.php b/js/index.php
index ade36fdbd4..3c449c653c 100644
--- a/js/index.php
+++ b/js/index.php
@@ -22,10 +22,11 @@ if(!empty($_SERVER['QUERY_STRING'])) {
*/
define('PIWIK_INCLUDE_PATH', '..');
define('PIWIK_DOCUMENT_ROOT', '..');
+define('PIWIK_USER_PATH', '..');
require_once PIWIK_INCLUDE_PATH . '/core/Piwik.php';
-$file = 'piwik.js';
+$file = '../piwik.js';
Piwik::serveStaticFile($file, "application/javascript; charset=UTF-8");