MDL-12153, "Validome - moodle.org invalid - require Content-Script-Type".

This commit is contained in:
nfreear
2007-11-13 14:46:44 +00:00
parent 9a68cffcbb
commit bc1bbaf477
+4 -2
View File
@@ -2410,11 +2410,13 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
}
$meta = '<meta http-equiv="content-type" content="text/html; charset=utf-8" />' .
$meta = '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' .
"\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 <html> tag.
$direction = get_html_lang($dir=true);