From b95149eb636f54cc6dff7fa37621524e20406133 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 01 Aug 2011 08:20:10 -0400 Subject: [PATCH] - 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 files changed, 2 insertions(+), 2 deletions(-) diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index 6635d13..6f01667 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -309,8 +309,9 @@ 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 @@ $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', -- Gitblit v1.9.1