Merge pull request #44 from PrivateBin/rugk-itBugsMe

Change array used for language selection
This commit is contained in:
El RIDO 2016-07-18 15:15:41 +02:00 committed by GitHub
commit e1d6db88a1

View File

@ -141,7 +141,7 @@ class i18n
// check if the lang cookie was set and that language exists
if (array_key_exists('lang', $_COOKIE) && in_array($_COOKIE['lang'], $availableLanguages))
{
$match = $_COOKIE['lang'];
$match = $availableLanguages[array_search($_COOKIE['lang'], $availableLanguages)];
}
// find a translation file matching the browsers language preferences
else