Performance: get_identity() -> list_emails(true)

This commit is contained in:
Aleksander Machniak 2014-11-27 06:33:05 -05:00
parent 62ac800db7
commit 6a7488f731
4 changed files with 5 additions and 5 deletions

View file

@ -2654,7 +2654,7 @@ class calendar extends rcube_plugin
// add attendee with this user's default identity if not listed
if (!$reply_sender) {
$sender_identity = $this->rc->user->get_identity();
$sender_identity = $this->rc->user->list_emails(true);
$event['attendees'][] = array(
'name' => $sender_identity['name'],
'email' => $sender_identity['email'],

View file

@ -679,7 +679,7 @@ class kolab_calendar extends kolab_storage_folder_api
}
// set current user as ORGANIZER
$identity = $this->cal->rc->user->get_identity();
$identity = $this->cal->rc->user->list_emails(true);
if (empty($event['attendees']) && $identity['email'])
$event['attendees'] = array(array('role' => 'ORGANIZER', 'name' => $identity['name'], 'email' => $identity['email']));

View file

@ -41,7 +41,7 @@ class libcalendaring_itip
$this->domain = $domain;
$hook = $this->rc->plugins->exec_hook('calendar_load_itip',
array('identity' => $this->rc->user->get_identity()));
array('identity' => $this->rc->user->list_emails(true)));
$this->sender = $hook['identity'];
$this->plugin->add_hook('message_before_send', array($this, 'before_send_hook'));
@ -287,7 +287,7 @@ class libcalendaring_itip
}
$emails = $this->lib->get_user_emails();
$me = $this->rc->user->get_identity();
$me = $this->rc->user->list_emails(true);
// find/create the delegate attendee
$delegate_attendee = array(

View file

@ -1789,7 +1789,7 @@ class tasklist extends rcube_plugin
// add attendee with this user's default identity if not listed
if (!$reply_sender) {
$sender_identity = $this->rc->user->get_identity();
$sender_identity = $this->rc->user->list_emails(true);
$task['attendees'][] = array(
'name' => $sender_identity['name'],
'email' => $sender_identity['email'],