summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
authorUrban Müller2014-10-30 11:45:25 +0100
committerUrban Müller2014-10-30 11:45:25 +0100
commit3024e2749dafeefad44caffe656ccf6b6ff26cbf (patch)
tree14212dbcdc693385c7c02e43bcc5020fd5d050d6 /itjs.php
parentbc0b7d5867aa6b8256bf28ec93b8b8b3777605a2 (diff)
downloaditools-3024e2749dafeefad44caffe656ccf6b6ff26cbf.tar.gz
itools-3024e2749dafeefad44caffe656ccf6b6ff26cbf.tar.bz2
itools-3024e2749dafeefad44caffe656ccf6b6ff26cbf.zip
correctly detect delivered file type
Diffstat (limited to 'itjs.php')
-rw-r--r--itjs.php2
1 files changed, 1 insertions, 1 deletions
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