Re #33 - remove bunch of dead code & fix some bugs

This commit is contained in:
Vojtěch Sajdl
2018-04-20 16:40:12 +02:00
parent 186fd48666
commit f121211a14
5 changed files with 31 additions and 22 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ class LocaleNegotiator
$this->default_language = $default_language;
//Works only if the server supports the locale
//This basically means $accepted_langs[<lang_code>] = "<lang name>";
foreach ($tmp as $key => $value) {
foreach ($tmp as $value) {
$lang = basename($value);
$this->accepted_langs[$lang] = $this->all_locales[$lang];
}