Follow-up fix 2 for MDL-8507 "Local language pack-..." - Content-Language header (merged from HEAD).

This commit is contained in:
nfreear
2007-03-05 15:40:01 +00:00
parent dcdb86c08a
commit e747435fcd
+1
View File
@@ -2011,6 +2011,7 @@ function get_html_lang($dir = false) {
}
//Accessibility: added the 'lang' attribute to $direction, used in theme <html> tag.
$language = str_replace('_', '-', str_replace('_utf8', '', current_language()));
@header('Content-Language: '.$language);
return ($direction.' lang="'.$language.'" xml:lang="'.$language.'"');
}