From: Tobias Diekershoff Date: Thu, 31 May 2018 06:27:27 +0000 (+0200) Subject: the detected language was not stored during user creation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9ea6d4b26d4375502c567276705dff2ff678122e;p=friendica.git the detected language was not stored during user creation --- diff --git a/src/Model/User.php b/src/Model/User.php index 9b0f409e11..39c544c3a8 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -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' => ''