- Patch #262920 by ainigma32: language selection for domain should look at HTTP_HOST not SERVER_NAME.

merge-requests/26/head
Dries Buytaert 2009-01-02 23:37:32 +00:00
parent 45f34467fb
commit f9f7c7bccf
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ function language_initialize() {
case LANGUAGE_NEGOTIATION_DOMAIN:
foreach ($languages as $language) {
$parts = parse_url($language->domain);
if (!empty($parts['host']) && ($_SERVER['SERVER_NAME'] == $parts['host'])) {
if (!empty($parts['host']) && ($_SERVER['HTTP_HOST'] == $parts['host'])) {
return $language;
}
}