diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-12-26 19:07:51 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-12-26 19:18:47 +0100 |
commit | e1471248fe8f8a4fc6edef28fe702245c2fde48d (patch) | |
tree | 62fc2899543b6c0b62c69d1728e39c4a9f0572c9 /includes/pages/user_settings.php | |
parent | ec47d124bb1626d1aa604d7fdb6ddbbd77c14987 (diff) |
User: Add pronoun statement
Diffstat (limited to 'includes/pages/user_settings.php')
-rw-r--r-- | includes/pages/user_settings.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/pages/user_settings.php b/includes/pages/user_settings.php index 5646b27f..46aea33d 100644 --- a/includes/pages/user_settings.php +++ b/includes/pages/user_settings.php @@ -70,7 +70,11 @@ function user_settings_main($user_source, $enable_tshirt_size, $tshirt_sizes) } // Trivia - if(config('enable_user_name')) { + $pronoun = strip_request_item('pronoun', $user_source->personalData->pronoun); + if (config('enable_pronoun') && mb_strlen($pronoun) <= 15) { + $user_source->personalData->pronoun = $pronoun; + } + if (config('enable_user_name')) { $user_source->personalData->last_name = strip_request_item('lastname', $user_source->personalData->last_name); $user_source->personalData->first_name = strip_request_item('prename', $user_source->personalData->first_name); } |