From 6a51175d32f7fe2e9dfd2e1baf4799726019470e Mon Sep 17 00:00:00 2001 From: robocoder Date: Fri, 25 Dec 2009 23:47:29 +0000 Subject: fix bug with manually compressed files git-svn-id: http://dev.piwik.org/svn/trunk@1734 59fd770c-687e-43c8-a1e3-f5a4ff64c105 --- js/index.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/index.php') 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; } } -- cgit v1.2.3