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>2009-12-26 02:47:29 +0300
committerrobocoder <anthon.pang@gmail.com>2009-12-26 02:47:29 +0300
commit6a51175d32f7fe2e9dfd2e1baf4799726019470e (patch)
tree45cbfde59fdfa8b96a1155125f333e9b7d643d5e /js/index.php
parentdb7db47e293e8f386cce769712c1e1d40eb48b13 (diff)
fix bug with manually compressed files
git-svn-id: http://dev.piwik.org/svn/trunk@1734 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'js/index.php')
-rw-r--r--js/index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/index.php b/js/index.php
index 3fc633f3a6..cc790a1a43 100644
--- a/js/index.php
+++ b/js/index.php
@@ -53,6 +53,8 @@ if (file_exists($file) && function_exists('readfile')) {
// manually compressed
$filegz = '../piwik.js.gz';
if (preg_match('/(?:^|, ?)((x-)?gzip)(?:,|$)/', $acceptEncoding, $matches) && file_exists($filegz) && (filemtime($file) < filemtime($filegz))) {
+ $encoding = $matches[1];
+ $compressed = true;
$file = $filegz;
}
}