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

use new trigger methods and add extra param

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.