Ignore:
Timestamp:
Sep 5, 2013, 11:34:16 AM (11 years ago)
Author:
mistic100
Message:

force footer contact link when the form is public

File:
1 edited

Legend:

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

    r23375 r24347  
    6565function contact_form_footer_link($content, &$smarty)
    6666{
    67   global $conf;
    68   if ( !@$conf['ContactForm']['cf_ready'] ) return $content;
    69  
    7067  $search = '<a href="mailto:{$CONTACT_MAIL}?subject={\'A comment on your site\'|@translate|@escape:url}">';
    7168  $replace = '<a href="'.CONTACT_FORM_PUBLIC.'">';
     
    8784    JOIN '.USER_INFOS_TABLE.' AS i
    8885    ON i.user_id =  u.'.$conf['user_fields']['id'].'
    89   WHERE i.status in (\'webmaster\',  \'admin\')
     86  WHERE i.status IN (\'webmaster\',  \'admin\')
    9087    AND '.$conf['user_fields']['email'].' IS NOT NULL
    9188  ORDER BY username
Note: See TracChangeset for help on using the changeset viewer.