From b95149eb636f54cc6dff7fa37621524e20406133 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 1 Aug 2011 12:20:10 +0000 Subject: - Fixed contact photos upload, moved code to separate file for better performance (to handle upload we don't need to initialize addressbook source) --- program/steps/addressbook/func.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program/steps/addressbook/func.inc') diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index 6635d1338..6f01667f6 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -309,8 +309,9 @@ function rcmail_js_contacts_list($result, $prefix='') if ($val == '' && $col == 'name') { $val = rcube_addressbook::compose_display_name($row, true); } + $a_row_cols[$col] = Q($val); - } + } $OUTPUT->command($prefix.'add_contact_row', $row['ID'], $a_row_cols); } @@ -729,7 +730,6 @@ $OUTPUT->add_handlers(array( $RCMAIL->register_action_map(array( 'add' => 'edit.inc', 'photo' => 'show.inc', - 'upload-photo' => 'save.inc', 'group-create' => 'groups.inc', 'group-rename' => 'groups.inc', 'group-delete' => 'groups.inc', -- cgit v1.2.3