mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 11:38:41 +00:00
fix: preferred language
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e6e7e77e8e
commit
d651d96b17
@ -442,11 +442,11 @@ class UOJForm {
|
||||
'always_ok'
|
||||
);
|
||||
|
||||
if ($config['preferred_lang'] == null || !isset($languages[$config['preferred_lang']])) {
|
||||
if ($config['preferred_lang'] == null || !isset($config['languages'][$config['preferred_lang']])) {
|
||||
$preferred_lang = Cookie::get('uoj_preferred_language');
|
||||
}
|
||||
|
||||
if ($config['preferred_lang'] == null || !isset($languages[$config['preferred_lang']])) {
|
||||
if ($config['preferred_lang'] == null || !isset($config['languages'][$config['preferred_lang']])) {
|
||||
$preferred_lang = UOJLang::$default_preferred_language;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user