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/functions_comment.inc.php

    r26089 r26110  
    149149
    150150  // perform more spam check
    151   $comment_action = trigger_event('user_comment_check',
    152       $comment_action, $comm
     151  $comment_action = trigger_change('user_comment_check',
     152      $comment_action, $comm, 'album'
    153153    );
    154154
     
    242242                      'comment_id' => $comment_id
    243243                  ));
    244     trigger_action('user_comment_deletion', $comment_id, 'category');
     244    trigger_notify('user_comment_deletion', $comment_id, 'album');
    245245
    246246    return true;
     
    280280  // perform more spam check
    281281  $comment_action =
    282     trigger_event('user_comment_check',
     282    trigger_change('user_comment_check',
    283283      $comment_action,
    284284      array_merge($comment,
    285285            array('author' => $GLOBALS['user']['username'])
    286             )
     286            ),
     287      'album'
    287288      );
    288289
     
    410411  pwg_query($query);
    411412
    412   trigger_action('user_comment_validation', $comment_id, 'category');
     413  trigger_notify('user_comment_validation', $comment_id, 'album');
    413414}
Note: See TracChangeset for help on using the changeset viewer.