diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-10-09 07:52:01 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-10-09 07:52:01 -0700 |
commit | f429c2716ee22754e3fcccc91ad1818b9fda3785 (patch) | |
tree | 74dcff423bef655c1e66a00e1b89f58cc10d0a5b /includes | |
parent | a375b7e5654c9e6ea9b3f30de58db3f4336cd92f (diff) | |
download | brdo-f429c2716ee22754e3fcccc91ad1818b9fda3785.tar.gz brdo-f429c2716ee22754e3fcccc91ad1818b9fda3785.tar.bz2 |
Issue #673020 by mgifford, attiks: Added the Content-Language HTTP header to the generated page.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index f65dc76cc..323293050 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -2479,6 +2479,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 @@ -2498,6 +2499,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); } /** |