mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
Revert #44
Scrutinizer-ci confirmed the detection of this was a false-positive, so we can remove this workaround. They added it to their internal issue tracker.
This commit is contained in:
parent
3d541f867b
commit
8038fde29d
|
@ -143,7 +143,7 @@ class I18n
|
||||||
|
|
||||||
// check if the lang cookie was set and that language exists
|
// check if the lang cookie was set and that language exists
|
||||||
if (array_key_exists('lang', $_COOKIE) && in_array($_COOKIE['lang'], $availableLanguages)) {
|
if (array_key_exists('lang', $_COOKIE) && in_array($_COOKIE['lang'], $availableLanguages)) {
|
||||||
$match = $availableLanguages[array_search($_COOKIE['lang'], $availableLanguages)];
|
$match = $_COOKIE['lang'];
|
||||||
}
|
}
|
||||||
// find a translation file matching the browsers language preferences
|
// find a translation file matching the browsers language preferences
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user