Ignore:
Timestamp:
Jun 4, 2014, 1:20:32 PM (10 years ago)
Author:
mistic100
Message:

use trigger_notify and trigger_change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/trunk/include/functions_comment.inc.php

    r26917 r28629  
    150150
    151151  // perform more spam check
    152   $comment_action = trigger_event('user_comment_check',
     152  $comment_action = trigger_change('user_comment_check',
    153153      $comment_action, $comm, 'album'
    154154    );
     
    243243                      'comment_id' => $comment_id
    244244                  ));
    245     trigger_action('user_comment_deletion', $comment_id, 'album');
     245    trigger_notify('user_comment_deletion', $comment_id, 'album');
    246246
    247247    return true;
     
    281281  // perform more spam check
    282282  $comment_action =
    283     trigger_event('user_comment_check',
     283    trigger_change('user_comment_check',
    284284      $comment_action,
    285285      array_merge($comment,
     
    413413  pwg_query($query);
    414414
    415   trigger_action('user_comment_validation', $comment_id, 'album');
     415  trigger_notify('user_comment_validation', $comment_id, 'album');
    416416}
Note: See TracChangeset for help on using the changeset viewer.