mirror of
https://github.com/friendica/friendica
synced 2025-04-22 03:50:11 +00:00
Simplified language check
This commit is contained in:
parent
6e830f7774
commit
da02df20c3
2 changed files with 22 additions and 21 deletions
|
@ -644,6 +644,10 @@ class User
|
|||
}
|
||||
}
|
||||
|
||||
if (!DI::config()->get('system', 'relay_deny_undetected_language')) {
|
||||
$languages['un'] = 'un';
|
||||
}
|
||||
|
||||
ksort($languages);
|
||||
$languages = array_keys($languages);
|
||||
DI::cache()->set($cachekey, $languages);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue