Skip to content
Snippets Groups Projects
Commit 07932805 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #673020 by mgifford, attiks: Added the Content-Language HTTP header to the generated page.

parent 4385856d
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment