diff options
author | thomascube <thomas@roundcube.net> | 2011-07-26 17:21:26 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-07-26 17:21:26 +0000 |
commit | da89cf293753cfbfbe1f6cedcbb5a5d22aed45db (patch) | |
tree | 05dfe4390506fdf579c1c9944d8727e5d356980e /program/steps/addressbook/func.inc | |
parent | 210438a6be905b25991a88c28fcbfbfa09ad0034 (diff) |
Always show address book name if multiple books are configured; fix styling
Diffstat (limited to 'program/steps/addressbook/func.inc')
-rw-r--r-- | program/steps/addressbook/func.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index 6b3ebad08..0a5a02287 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -160,6 +160,20 @@ function rcmail_default_source($writable=false) return $list[key($list)]['id']; } +function rcmail_set_sourcename($abook) +{ + global $OUTPUT; + + // get address book name (for display) + if ($abook && $_SESSION['addressbooks_count'] > 1) { + $name = $abook->get_name(); + if (!$name && $source == 0) { + $name = rcube_label('personaladrbook'); + } + $OUTPUT->set_env('sourcename', $name); + } +} + function rcmail_directory_list($attrib) { |