From 0946fff44c1c4574779b198d4fd2c8241d12a0c1 Mon Sep 17 00:00:00 2001 From: nfreear Date: Mon, 5 Mar 2007 15:38:10 +0000 Subject: [PATCH] Follow-up fix 2 for MDL-8507 "Local language pack-..." - Content-Language header. --- lib/weblib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index b55816955d..78c575dccd 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2011,6 +2011,7 @@ function get_html_lang($dir = false) { } //Accessibility: added the 'lang' attribute to $direction, used in theme tag. $language = str_replace('_', '-', str_replace('_utf8', '', current_language())); + @header('Content-Language: '.$language); return ($direction.' lang="'.$language.'" xml:lang="'.$language.'"'); } @@ -5774,4 +5775,4 @@ function frametarget() { } // vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140: -?> +?> \ No newline at end of file -- 2.39.5