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:
authormattpiwik <matthieu.aubry@gmail.com>2010-08-07 00:12:47 +0400
committermattpiwik <matthieu.aubry@gmail.com>2010-08-07 00:12:47 +0400
commit8a2b75e2723e60f0ab3025f7643b058ece704b41 (patch)
tree8e9ac77eabd87687842e894be2c83e6916842e35 /js/index.php
parent268f75b42192715e9f28776e262675ec07beb745 (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
Diffstat (limited to 'js/index.php')
-rw-r--r--js/index.php6
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;