From 3024e2749dafeefad44caffe656ccf6b6ff26cbf Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 30 Oct 2014 11:45:25 +0100 Subject: correctly detect delivered file type --- itjs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'itjs.php') diff --git a/itjs.php b/itjs.php index bc32806..86cca64 100644 --- a/itjs.php +++ b/itjs.php @@ -42,7 +42,7 @@ if (it::match('\.gif$', $file)) { header("Content-Type: image/gif"); } -else if (it::match('\.css', $_SERVER['PHP_SELF'])) +else if (it::match('\.css', $file)) { header("Content-Type: text/css"); $data .= "\n#it_boot_dom { display:none }\n"; # Append magic style for it_boot -- cgit v1.2.3