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

use new trigger methods and add extra param

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/trunk/include/coa_albums.php

    r26089 r26110  
    156156
    157157  // allow plugins to notify what's going on
    158   trigger_action( 'user_comment_insertion',
    159       array_merge($comm, array('action'=>$comment_action) )
     158  trigger_notify('user_comment_insertion',
     159      array_merge($comm, array('action'=>$comment_action) ),
     160      'album'
    160161    );
    161162
     
    282283      $tpl_comment = array(
    283284        'ID' => $row['id'],
    284         'AUTHOR' => trigger_event('render_comment_author', $row['author']),
     285        'AUTHOR' => trigger_change('render_comment_author', $row['author']),
    285286        'DATE' => format_date($row['date'], true),
    286         'CONTENT' => trigger_event('render_comment_content', $row['content'], 'album'),
     287        'CONTENT' => trigger_change('render_comment_content', $row['content'], 'album'),
    287288        'WEBSITE_URL' => $row['website_url'],
    288289        );
Note: See TracChangeset for help on using the changeset viewer.