diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2010-08-07 00:12:47 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2010-08-07 00:12:47 +0400 |
commit | 8a2b75e2723e60f0ab3025f7643b058ece704b41 (patch) | |
tree | 8e9ac77eabd87687842e894be2c83e6916842e35 | |
parent | 268f75b42192715e9f28776e262675ec07beb745 (diff) |
Gzipped files should be written to /js/ refs #1527
git-svn-id: http://dev.piwik.org/svn/trunk@2876 59fd770c-687e-43c8-a1e3-f5a4ff64c105
-rw-r--r-- | js/index.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/index.php b/js/index.php index afba718085..d98424ce71 100644 --- a/js/index.php +++ b/js/index.php @@ -30,10 +30,10 @@ if (file_exists($file) && function_exists('readfile')) { if (extension_loaded('zlib') && function_exists('file_get_contents') && function_exists('file_put_contents')) { if (preg_match('/(?:^|, ?)(deflate)(?:,|$)/', $acceptEncoding, $matches)) { $encoding = 'deflate'; - $filegz = '../piwik.js.deflate'; + $filegz = '../tmp/piwik.js.deflate'; } else if (preg_match('/(?:^|, ?)((x-)?gzip)(?:,|$)/', $acceptEncoding, $matches)) { $encoding = $matches[1]; - $filegz = '../piwik.js.gz'; + $filegz = '../tmp/piwik.js.gz'; } if (!empty($encoding)) { @@ -56,7 +56,7 @@ if (file_exists($file) && function_exists('readfile')) { } } else { // manually compressed - $filegz = '../piwik.js.gz'; + $filegz = '../tmp/piwik.js.gz'; if (preg_match('/(?:^|, ?)((x-)?gzip)(?:,|$)/', $acceptEncoding, $matches) && file_exists($filegz) && (filemtime($file) < filemtime($filegz))) { $encoding = $matches[1]; $compressed = true; |