summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries2012-06-04 13:46:54 (GMT)
committerDries2012-06-04 13:46:54 (GMT)
commit10631112ea0bdaa43ca93d65f17c5454797249a7 (patch)
tree8f7e1db254dcffac088d72ed1b5726de9f30999d
parent002769ef32ac36f1b851ba08af4504b7ea4afa45 (diff)
- Patch #1572394 by attiks, Sweetchuck: Fixed Language detection by domain only works on port 80.
-rw-r--r--core/modules/language/language.negotiation.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/language/language.negotiation.inc b/core/modules/language/language.negotiation.inc
index a16dbe8..63c8c13 100644
--- a/core/modules/language/language.negotiation.inc
+++ b/core/modules/language/language.negotiation.inc
@@ -223,7 +223,8 @@ function language_from_url($languages) {
// Get only the host, not the port.
$http_host= $_SERVER['HTTP_HOST'];
if (strpos($http_host, ':') !== FALSE) {
- $http_host = current(explode(':', $http_host));
+ $http_host_tmp = explode(':', $http_host);
+ $http_host = current($http_host_tmp);
}
$domains = language_negotiation_url_domains();
foreach ($languages as $language) {