summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/addressbook
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-04 09:59:55 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-04 09:59:55 +0000
commit86e44e38ca066e5e87605934853648da54fb02a3 (patch)
tree40b2b18d350a0411e29f129ee4ad1b2e4acbbdb3 /roundcubemail/program/steps/addressbook
parentb0ecd00008ce87e4a61793a2f4e7c443dce99c39 (diff)
- Unify template files naming
git-svn-id: https://svn.roundcube.net/trunk@4176 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook')
-rw-r--r--roundcubemail/program/steps/addressbook/edit.inc12
-rw-r--r--roundcubemail/program/steps/addressbook/show.inc2
2 files changed, 7 insertions, 7 deletions
diff --git a/roundcubemail/program/steps/addressbook/edit.inc b/roundcubemail/program/steps/addressbook/edit.inc
index d975c76f1..831390382 100644
--- a/roundcubemail/program/steps/addressbook/edit.inc
+++ b/roundcubemail/program/steps/addressbook/edit.inc
@@ -79,15 +79,15 @@ function get_form_tags($attrib)
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 @@ function get_form_tags($attrib)
$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');
diff --git a/roundcubemail/program/steps/addressbook/show.inc b/roundcubemail/program/steps/addressbook/show.inc
index 67eaa53ef..f1c23b8e3 100644
--- a/roundcubemail/program/steps/addressbook/show.inc
+++ b/roundcubemail/program/steps/addressbook/show.inc
@@ -126,4 +126,4 @@ function rcmail_contact_record_groups($contact_id)
//$OUTPUT->framed = $_framed;
$OUTPUT->add_handler('contactdetails', 'rcmail_contact_details');
-$OUTPUT->send('showcontact');
+$OUTPUT->send('contact');