diff options
author | Urban Müller | 2018-08-30 17:02:02 +0200 |
---|---|---|
committer | Urban Müller | 2018-08-30 17:02:02 +0200 |
commit | 703275736ac4a2e5483dc5fddf2dcc9bf2db47a7 (patch) | |
tree | 806f792d5f3e440749156a33f7e9bd745504b201 /itjs.php | |
parent | d5448b5e0872530c29728ef03196ec90324057a6 (diff) | |
download | itools-703275736ac4a2e5483dc5fddf2dcc9bf2db47a7.tar.gz itools-703275736ac4a2e5483dc5fddf2dcc9bf2db47a7.tar.bz2 itools-703275736ac4a2e5483dc5fddf2dcc9bf2db47a7.zip |
minor cleanup
Diffstat (limited to 'itjs.php')
-rw-r--r-- | itjs.php | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -74,10 +74,9 @@ else if (it::match('\.htc$', $lastfile)) } else if (!it::match('\.html$', $lastfile)) { + header("Content-Type: application/x-javascript; charset=" . (ini_get('default_charset') ?: 'iso-8859-1')); $data = "window.trace+='i';\n$data\nwindow.trace+='I';\n"; $data .= "\nwindow.it_gotjs = (window.it_gotjs ? window.it_gotjs : '') + '." . it::match('\w+', basename($lastfile)) . "';\n"; - $charset = ini_get('default_charset') ?: 'iso-8859-1'; - header("Content-Type: application/x-javascript; charset=$charset"); } $data = itjs::strip($data); |