Simplified language check

This commit is contained in:
Michael 2024-01-07 12:09:13 +00:00
parent 6e830f7774
commit da02df20c3
2 changed files with 22 additions and 21 deletions

View file

@ -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);