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:
-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;