From 2f2f15b7aabe19e45dad9bddb7eb7f4394aa1e21 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Mon, 04 Sep 2006 08:26:30 -0400 Subject: [PATCH] Little improvements for message parsing and encoding --- program/steps/addressbook/func.inc | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index ee3b880..6d3e95e 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -30,7 +30,12 @@ else $CONTACTS_LIST['page'] = $_SESSION['page'] ? $_SESSION['page'] : 1; - +// disable the ldap public search button if there's no servers configured +$enable_ldap = 'true'; +if (!$CONFIG['ldap_public']) + $enable_ldap = 'false'; + +$OUTPUT->add_script("$JS_OBJECT_NAME.set_env('ldappublicsearch', $enable_ldap);"); // return the message list as HTML table function rcmail_contacts_list($attrib) @@ -86,6 +91,9 @@ $OUTPUT->add_script($javascript); + // add some labels to client + rcube_add_label('deletecontactconfirm'); + return $out; } -- Gitblit v1.9.1