Fixed update_user
This commit is contained in:
parent
3a530d9a33
commit
7ec1978f41
|
@ -424,16 +424,6 @@ function get_user_language($id_user=null)
|
|||
if ($quick_language) {
|
||||
$language = get_parameter('language', 0);
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
if ($id_user == null) {
|
||||
$id_user = $config['id_user'];
|
||||
}
|
||||
|
||||
if ($language !== 0) {
|
||||
update_user($id_user, ['language' => $language]);
|
||||
}
|
||||
}
|
||||
|
||||
if ($language === 'default') {
|
||||
return $config['language'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue