From 7a5c48e7f70b8bc938fcae3ffd2be0fdbeaab145 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Wed, 13 Dec 2006 02:17:24 -0500 Subject: [PATCH] Changed 'junk' label in French localization --- program/steps/addressbook/func.inc | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index ee3b880..0df6df3 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) @@ -85,6 +90,10 @@ //$javascript .= sprintf("%s.set_env('contacts', %s);", $JS_OBJECT_NAME, array2js($a_js_message_arr)); $OUTPUT->add_script($javascript); + $OUTPUT->include_script('list.js'); + + // add some labels to client + rcube_add_label('deletecontactconfirm'); return $out; } -- Gitblit v1.9.1