Ignore:
Timestamp:
Dec 9, 2013, 5:34:37 PM (10 years ago)
Author:
mistic100
Message:

update for 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/include/contact_form.inc.php

    r23207 r25872  
    44global $template, $user, $conf, $page, $pwg_loaded_plugins;
    55
    6 if ( (!is_classic_user() and !$conf['ContactForm']['cf_allow_guest']) or !$conf['ContactForm']['cf_ready'] )
     6if ( (!is_classic_user() and !$conf['ContactForm']['cf_allow_guest']) or !$conf['ContactForm_ready'] )
    77{
    88  redirect(get_absolute_root_url());
     
    2222    'send_copy' => isset($_POST['send_copy']),
    2323   );
    24  
     24
    2525  $comment_action = send_contact_form($contact, @$_POST['key']);
    2626
     
    105105  ));
    106106
    107 $template->set_filename('index', realpath(CONTACT_FORM_PATH . 'template/contact_form.tpl'));
    108 
    109 ?>
     107$template->set_filename('contactform', realpath(CONTACT_FORM_PATH . 'template/contact_form.tpl'));
     108$template->assign_var_from_handle('CONTENT', 'contactform');
Note: See TracChangeset for help on using the changeset viewer.