mirror of
https://github.com/friendica/friendica
synced 2024-11-09 16:22:56 +00:00
the detected language was not stored during user creation
This commit is contained in:
parent
6bdcb6a15b
commit
9ea6d4b26d
1 changed files with 2 additions and 0 deletions
|
@ -331,6 +331,7 @@ class User
|
|||
$confirm = x($data, 'confirm') ? trim($data['confirm']) : '';
|
||||
$blocked = x($data, 'blocked') ? intval($data['blocked']) : 0;
|
||||
$verified = x($data, 'verified') ? intval($data['verified']) : 0;
|
||||
$language = x($data, 'language') ? notags(trim($data['language'])) : 'en';
|
||||
|
||||
$publish = x($data, 'profile_publish_reg') && intval($data['profile_publish_reg']) ? 1 : 0;
|
||||
$netpublish = strlen(Config::get('system', 'directory')) ? $publish : 0;
|
||||
|
@ -466,6 +467,7 @@ class User
|
|||
'sprvkey' => $sprvkey,
|
||||
'verified' => $verified,
|
||||
'blocked' => $blocked,
|
||||
'language' => $language,
|
||||
'timezone' => 'UTC',
|
||||
'register_date' => DateTimeFormat::utcNow(),
|
||||
'default-location' => ''
|
||||
|
|
Loading…
Reference in a new issue