mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-23 14:29:29 -05:00
Search key first
Looks a bit complicated, but well...
This commit is contained in:
parent
80e9d75477
commit
2e863e3ed9
@ -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 = $availableLanguages['lang'];
|
||||
$match = $availableLanguages[array_search($_COOKIE['lang'], $availableLanguages)];
|
||||
}
|
||||
// find a translation file matching the browsers language preferences
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user