From df470ed7170e4b323b4623fd55453abc2d7810ad Mon Sep 17 00:00:00 2001 From: mattab Date: Sat, 14 Sep 2013 12:03:04 +1200 Subject: Refactoring ProxyStaticFile class: Small static file server proxy, with compression, caching. Used to server piwik.js and the merged+minified CSS and JS files --- js/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/index.php') diff --git a/js/index.php b/js/index.php index 6c67ffdc81..4ee43b7e64 100644 --- a/js/index.php +++ b/js/index.php @@ -5,7 +5,7 @@ * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ -use Piwik\Piwik; +use Piwik\ProxyStaticFile; /** * Tracker proxy @@ -31,6 +31,6 @@ $file = '../piwik.js'; // There is no cache buster parameter so we don't set Expires: header $expireFarFuture = false; -Piwik::serveStaticFile($file, "application/javascript; charset=UTF-8", $expireFarFuture); +ProxyStaticFile::serveFile($file, "application/javascript; charset=UTF-8", $expireFarFuture); exit; -- cgit v1.2.3