MDL-52835 mod_data: Correct MIME type for JS template

This commit is contained in:
Michael de Raadt
2016-01-22 09:55:28 +11:00
parent 4ffe9d1bd3
commit de7454d413
+1 -1
View File
@@ -38,7 +38,7 @@ if ($data = $DB->get_record('data', array('id'=>$d))) {
header('Expires: ' . gmdate("D, d M Y H:i:s", time() + $lifetime) . ' GMT');
header('Cache-control: max_age = '. $lifetime);
header('Pragma: ');
header('Content-type: text/css; charset=utf-8'); // Correct MIME type
header('Content-type: application/javascript; charset=utf-8'); // Correct MIME type.
echo $data->jstemplate;
}