From 39296e9d4167d710bf4261325ecf2a9aeb8dc325 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 28 Sep 2009 15:19:17 +0000 Subject: [PATCH] added the option allfirst for account display to show [username] firstname lastname, as the option all displayed [username] firstname lastname and not [username] lastname, firstnamne as advertised --- phpgwapi/inc/class.common.inc.php | 5 ++++- preferences/inc/hook_settings.inc.php | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 8b419ce161..a38e9ec1c6 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -403,10 +403,13 @@ case 'lastall': $name = $lastname . $delimiter . $firstname . ' ['.$lid.']'; break; + case 'allfirst': + $name = '['.$lid.'] ' . $firstname . ' ' . $lastname; + break; case 'all': /* fall through */ default: - $name = '['.$lid.'] ' . $firstname . ' ' . $lastname; + $name = '['.$lid.'] ' . $lastname . $delimiter . $firstname; } return $name; } diff --git a/preferences/inc/hook_settings.inc.php b/preferences/inc/hook_settings.inc.php index ee3a2b406d..946fd5084c 100755 --- a/preferences/inc/hook_settings.inc.php +++ b/preferences/inc/hook_settings.inc.php @@ -110,6 +110,7 @@ 'username' => lang('username'), 'firstall' => lang('Firstname').' '.lang('Lastname').' ['.lang('username').']', 'lastall' => lang('Lastname').', '.lang('Firstname').' ['.lang('username').']', + 'allfirst' => '['.lang('username').'] '.lang('Firstname'). ' '.lang('Lastname'), 'all' => '['.lang('username').'] '.lang('Lastname').', '.lang('Firstname') );