diff options
author | robocoder <anthon.pang@gmail.com> | 2010-10-16 23:23:11 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2010-10-16 23:23:11 +0400 |
commit | f20600d85a9d8e93f79922dc61ab54681c68ffd7 (patch) | |
tree | 1a43082809cfa0fa9c43935803e34ea88f2e60a1 /js/index.php | |
parent | 70d6bcdf01c4566686ea8c9522222506965ea96c (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.php | 3 |
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"); |