diff --git a/lib/weblib.php b/lib/weblib.php
index fb690fabf6b0f..59b4ac1a3ada1 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -2410,11 +2410,13 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
}
- $meta = '' .
+ $meta = '' .
"\n" . $meta . "\n";
if (!$usexml) {
- @header('Content-type: text/html; charset=utf-8');
+ @header('Content-Type: text/html; charset=utf-8');
}
+ @header('Content-Script-Type: text/javascript');
+ @header('Content-Style-Type: text/css');
//Accessibility: added the 'lang' attribute to $direction, used in theme tag.
$direction = get_html_lang($dir=true);