Web: fix language selection mechanism

New browsers pass "auto" as the first accepted language.
This broke the language selection logic.

BTW, the language selection logic is a kludge and I don't think it works
correctly for e.g. "es en da"
This commit is contained in:
David Anderson 2015-10-07 12:17:07 -07:00
parent 5722bf5f94
commit 3ba2d9c83d
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ for ($i=0; $i<sizeof($client_languages); $i++) {
// if main language is english, look no further // if main language is english, look no further
// //
if ($i == 0 && ($language == 'en' || $language2 == 'en')) { if ((count($languages_in_use)==0) && ($language == 'en' || $language2 == 'en')) {
break; break;
} }