mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
forcing language by parameter
This commit is contained in:
parent
c90314cd6a
commit
e0777b6bc9
1 changed files with 4 additions and 1 deletions
|
@ -109,7 +109,10 @@ class L10n extends BaseObject
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
//if $_GET['lang'] is set force $_GET['lang']
|
||||
if (isset($_GET['lang'])) {
|
||||
$lang_list = [ $_GET['lang'] ];
|
||||
}
|
||||
// check if we have translations for the preferred languages and pick the 1st that has
|
||||
foreach ($lang_list as $lang) {
|
||||
if ($lang === 'en' || (file_exists("view/lang/$lang") && is_dir("view/lang/$lang"))) {
|
||||
|
|
Loading…
Reference in a new issue