diff --git a/mod/data/js.php b/mod/data/js.php index f76349d270a..96e48559755 100644 --- a/mod/data/js.php +++ b/mod/data/js.php @@ -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; } \ No newline at end of file