Changeset 28628


Ignore:
Timestamp:
Jun 4, 2014, 1:13:05 PM (6 years ago)
Author:
mistic100
Message:

use trigger_change

Location:
extensions/ContactForm/include
Files:
2 edited

Legend:

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

    r28458 r28628  
    9999$template->assign(array(
    100100  'contact' => $contact,
    101   'ContactForm_before' => trigger_event('render_contact_form', nl2br($conf['ContactForm_before'])),
    102   'ContactForm_after' => trigger_event('render_contact_form', nl2br($conf['ContactForm_after'])),
     101  'ContactForm_before' => trigger_change('render_contact_form', nl2br($conf['ContactForm_before'])),
     102  'ContactForm_after' => trigger_change('render_contact_form', nl2br($conf['ContactForm_after'])),
    103103  'KEY' => get_ephemeral_key(3),
    104104  'CONTACT_FORM_PATH' => CONTACT_FORM_PATH,
  • extensions/ContactForm/include/functions.inc.php

    r28458 r28628  
    233233
    234234  // perform more spam check
    235   $comment_action = trigger_event('contact_form_check', $comment_action, $comm);
     235  $comment_action = trigger_change('contact_form_check', $comment_action, $comm);
    236236
    237237  // get admin emails
     
    245245  if ($comment_action == 'validate')
    246246  {
    247     $comm['content'] = trigger_event('render_contact_content', $comm['content']);
     247    $comm['content'] = trigger_change('render_contact_content', $comm['content']);
    248248
    249249    $prefix = str_replace('%gallery_title%', $conf['gallery_title'], $conf['ContactForm']['cf_subject_prefix']);
Note: See TracChangeset for help on using the changeset viewer.