summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2011-10-09 14:51:51 (GMT)
committerwebchick2011-10-09 14:51:51 (GMT)
commit07932805276fdaec77460e6aac330d11768d555c (patch)
tree1c692f234a6bc062a5210903e6c888c2b86727f0
parent4385856d7d7cd3da91c6765340cee2e10efa31ab (diff)
Issue #673020 by mgifford, attiks: Added the Content-Language HTTP header to the generated page.
-rw-r--r--includes/bootstrap.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index c022e8e..bc5d5a3 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -2519,6 +2519,7 @@ function get_t() {
* Initialize all the defined language types.
*/
function drupal_language_initialize() {
+ global $language;
$types = language_types();
// Ensure the language is correctly returned, even without multilanguage
@@ -2538,6 +2539,9 @@ function drupal_language_initialize() {
// environments.
bootstrap_invoke_all('language_init');
}
+
+ // Send appropriate HTTP-Header for browsers and search engines.
+ header('Content-Language: ' . $language->language);
}
/**