Commit f9f7c7bc authored by Dries's avatar Dries

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

- Patch #262920 by ainigma32: language selection for domain should look at HTTP_HOST not SERVER_NAME.
parent 45f34467
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment