]> git.mxchange.org Git - friendica.git/commitdiff
the detected language was not stored during user creation
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Thu, 31 May 2018 06:27:27 +0000 (08:27 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Thu, 31 May 2018 06:27:27 +0000 (08:27 +0200)
src/Model/User.php

index 9b0f409e11b150b6b39e279655a5553c29fdcb7f..39c544c3a8786f62053093ec1c4ff734d5eb4c4f 100644 (file)
@@ -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' => ''