mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-52835 mod_data: Correct MIME type for JS template
This commit is contained in:
parent
eddec36d49
commit
acc9fed2ee
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user