diff options
author | Mario <mario@mariovavti.com> | 2022-01-12 21:08:29 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-01-12 21:08:29 +0000 |
commit | abe3039926dd388108e620148868880cb1da3fa3 (patch) | |
tree | 5df8a062da5e7829d23045fc7e197392a9655baa /include | |
parent | 82a1117e917a0c97de961f31f4d4aea7affa069f (diff) | |
download | volse-hubzilla-abe3039926dd388108e620148868880cb1da3fa3.tar.gz volse-hubzilla-abe3039926dd388108e620148868880cb1da3fa3.tar.bz2 volse-hubzilla-abe3039926dd388108e620148868880cb1da3fa3.zip |
ux improvements
Diffstat (limited to 'include')
-rw-r--r-- | include/selectors.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/selectors.php b/include/selectors.php index d58ef1085..57a9db480 100644 --- a/include/selectors.php +++ b/include/selectors.php @@ -1,7 +1,7 @@ <?php /** @file */ -function contact_profile_assign($current) { +function contact_profile_assign($current, $label = '') { $r = q("SELECT profile_guid, profile_name FROM profile WHERE uid = %d", intval($_SESSION['uid']) @@ -13,9 +13,13 @@ function contact_profile_assign($current) { } } + if (!$label) { + $label = t('Select a profile to assign to this contact'); + } + $select = [ 'profile_assign', - t('Select a profile to assign to this contact'), + $label, $current, '', $options |