Changeset 26111


Ignore:
Timestamp:
Dec 23, 2013, 11:39:33 AM (7 years ago)
Author:
mistic100
Message:

use new trigger methods and add extra param

Location:
extensions/GuestBook
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/GuestBook/admin/pending.php

    r26065 r26111  
    8282    array(
    8383      'ID' => $row['id'],
    84       'AUTHOR' => trigger_event('render_comment_author', $author_name),
     84      'AUTHOR' => trigger_change('render_comment_author', $author_name),
    8585      'DATE' => format_date($row['date'], true),
    86       'CONTENT' => trigger_event('render_comment_content',$row['content']),
     86      'CONTENT' => trigger_change('render_comment_content', $row['content'], 'guestbook'),
    8787      'EMAIL' => $row['email'],
    8888      'WEBSITE' => $row['website'],
  • extensions/GuestBook/include/functions_comment.inc.php

    r26065 r26111  
    133133 
    134134  // perform more spam check
    135   $comment_action = trigger_event('user_comment_check', $comment_action, $comm);
     135  $comment_action = trigger_change('user_comment_check', $comment_action, $comm, 'guestbook');
    136136
    137137  if ($comment_action!='reject')
  • extensions/GuestBook/include/guestbook.inc.php

    r26065 r26111  
    135135      trigger_error('Invalid comment action '.$comment_action, E_USER_WARNING);
    136136  }
    137 
    138   // allow plugins to notify what's going on
    139   trigger_action('user_comment_insertion',
    140       array_merge($comm, array('action'=>$comment_action))
    141     );
    142137}
    143138
     
    224219    $tpl_comment = array(
    225220      'ID' => $row['id'],
    226       'AUTHOR' => trigger_event('render_comment_author', $author),
     221      'AUTHOR' => trigger_change('render_comment_author', $author),
    227222      'DATE' => format_date($row['date'], true),
    228       'CONTENT' => trigger_event('render_comment_content', $row['content']),
     223      'CONTENT' => trigger_change('render_comment_content', $row['content'], 'guestbook'),
    229224      'WEBSITE' => $row['website'],
    230225      );
Note: See TracChangeset for help on using the changeset viewer.