Ignore:
Timestamp:
Jun 14, 2013, 3:10:07 PM (11 years ago)
Author:
mistic100
Message:

fix loop redirect when no email configured

File:
1 edited

Legend:

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

    r23206 r23207  
    4848  if ( !$conf['ContactForm']['cf_menu_link'] ) return;
    4949  if ( !is_classic_user() and !$conf['ContactForm']['cf_allow_guest'] ) return;
    50   if ( !count(get_contact_emails()) ) return;
     50  if ( !$conf['ContactForm']['cf_ready'] ) return;
    5151
    5252  $menu = &$menu_ref_arr[0];
     
    6565function contact_form_footer_link($content, &$smarty)
    6666{
     67  global $conf;
     68  if ( !$conf['ContactForm']['cf_ready'] ) return $content;
     69 
    6770  $search = '<a href="mailto:{$CONTACT_MAIL}?subject={\'A comment on your site\'|@translate|@escape:url}">';
    6871  $replace = '<a href="'.CONTACT_FORM_PUBLIC.'">';
Note: See TracChangeset for help on using the changeset viewer.