summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_addressbook.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-11-25 20:07:37 +0100
committerThomas Bruederli <thomas@roundcube.net>2012-11-25 20:07:37 +0100
commitbfc30700672fb40eb488259a70473f130d2f52ea (patch)
treea96d3bd1a088960228411be10f96c73e25d3bb38 /program/lib/Roundcube/rcube_addressbook.php
parent5926684aab72265d243142010d9dfa8d642efdb9 (diff)
Cut dependencies to rcmail class
Diffstat (limited to 'program/lib/Roundcube/rcube_addressbook.php')
-rw-r--r--program/lib/Roundcube/rcube_addressbook.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/lib/Roundcube/rcube_addressbook.php b/program/lib/Roundcube/rcube_addressbook.php
index b5fb8cf43..d14fc587a 100644
--- a/program/lib/Roundcube/rcube_addressbook.php
+++ b/program/lib/Roundcube/rcube_addressbook.php
@@ -209,7 +209,7 @@ abstract class rcube_addressbook
*/
public function validate(&$save_data, $autofix = false)
{
- $rcmail = rcmail::get_instance();
+ $rcmail = rcube::get_instance();
// check validity of email addresses
foreach ($this->get_col_values('email', $save_data, true) as $email) {
@@ -467,7 +467,7 @@ abstract class rcube_addressbook
*/
public static function compose_display_name($contact, $full_email = false)
{
- $contact = rcmail::get_instance()->plugins->exec_hook('contact_displayname', $contact);
+ $contact = rcube::get_instance()->plugins->exec_hook('contact_displayname', $contact);
$fn = $contact['name'];
if (!$fn) // default display name composition according to vcard standard
@@ -504,7 +504,7 @@ abstract class rcube_addressbook
static $compose_mode;
if (!isset($compose_mode)) // cache this
- $compose_mode = rcmail::get_instance()->config->get('addressbook_name_listing', 0);
+ $compose_mode = rcube::get_instance()->config->get('addressbook_name_listing', 0);
if ($compose_mode == 3)
$fn = join(' ', array($contact['surname'] . ',', $contact['firstname'], $contact['middlename']));