From 83ba22c77b8790d8cbea8c684c4e1a0c431b83d6 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Thu, 04 Nov 2010 05:59:55 -0400 Subject: [PATCH] - Unify template files naming --- program/steps/addressbook/edit.inc | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/program/steps/addressbook/edit.inc b/program/steps/addressbook/edit.inc index d975c76..8313903 100644 --- a/program/steps/addressbook/edit.inc +++ b/program/steps/addressbook/edit.inc @@ -79,15 +79,15 @@ global $CONTACTS, $EDIT_FORM, $RCMAIL; $form_start = $form_end = ''; - + if (empty($EDIT_FORM)) { $hiddenfields = new html_hiddenfield(array( 'name' => '_source', 'value' => get_input_value('_source', RCUBE_INPUT_GPC))); $hiddenfields->add(array('name' => '_gid', 'value' => $CONTACTS->group_id)); - + if (($result = $CONTACTS->get_result()) && ($record = $result->first())) $hiddenfields->add(array('name' => '_cid', 'value' => $record['ID'])); - + $form_start = $RCMAIL->output->request_form(array( 'name' => "form", 'method' => "post", 'task' => $RCMAIL->task, 'action' => 'save', @@ -105,8 +105,8 @@ $OUTPUT->add_handler('contacteditform', 'rcmail_contact_editform'); -if (!$CONTACTS->get_result() && $OUTPUT->template_exists('addcontact')) - $OUTPUT->send('addcontact'); +if (!$CONTACTS->get_result() && $OUTPUT->template_exists('contactadd')) + $OUTPUT->send('contactadd'); // this will be executed if no template for addcontact exists -$OUTPUT->send('editcontact'); +$OUTPUT->send('contactedit'); -- Gitblit v1.9.1