From: nfreear Date: Tue, 13 Nov 2007 14:46:44 +0000 (+0000) Subject: MDL-12153, "Validome - moodle.org invalid - require Content-Script-Type". X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bc1bbaf477df04c205459bbb1023447db8651f2f;p=moodle.git MDL-12153, "Validome - moodle.org invalid - require Content-Script-Type". --- diff --git a/lib/weblib.php b/lib/weblib.php index fb690fabf6..59b4ac1a3a 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);