From 2dc68b1c8d61e444a4e7e132043540f9f2c41ff9 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 28 Sep 2009 15:10:02 +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 a0ec97c651..5dd6f394a4 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -381,10 +381,13 @@ class common 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') );