diff options
author | mistic100 <mistic@piwigo.org> | 2014-06-02 07:55:46 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2014-06-02 07:55:46 +0000 |
commit | 4bd32005b56f6ec741ceeed0a1745fe89f291085 (patch) | |
tree | e2ee9bb68d07822bb7c0122831a0ce313a5af2d2 /include/functions_comment.inc.php | |
parent | f98edc7a2e423bed534977107e4cb892180cb946 (diff) |
feature 3010 : replace trigger_action/event by trigger_notify/change
git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_comment.inc.php')
-rw-r--r-- | include/functions_comment.inc.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/functions_comment.inc.php b/include/functions_comment.inc.php index 3e0dd0f69..5807fc12f 100644 --- a/include/functions_comment.inc.php +++ b/include/functions_comment.inc.php @@ -31,7 +31,7 @@ add_event_handler('user_comment_check', 'user_comment_check', /** * Does basic check on comment and returns action to perform. - * This method is called by a trigger_event() + * This method is called by a trigger_change() * * @param string $action before check * @param array $comment @@ -211,7 +211,7 @@ SELECT count(1) FROM '.COMMENTS_TABLE.' } // perform more spam check - $comment_action = trigger_event('user_comment_check', + $comment_action = trigger_change('user_comment_check', $comment_action, $comm ); @@ -303,7 +303,7 @@ $user_where_clause.' array('author' => $GLOBALS['user']['username'], 'comment_id' => $comment_id )); - trigger_action('user_comment_deletion', $comment_id); + trigger_notify('user_comment_deletion', $comment_id); return true; } @@ -342,7 +342,7 @@ function update_user_comment($comment, $post_key) // perform more spam check $comment_action = - trigger_event('user_comment_check', + trigger_change('user_comment_check', $comment_action, array_merge($comment, array('author' => $GLOBALS['user']['username']) @@ -509,7 +509,7 @@ UPDATE '.COMMENTS_TABLE.' pwg_query($query); invalidate_user_cache_nb_comments(); - trigger_action('user_comment_validation', $comment_id); + trigger_notify('user_comment_validation', $comment_id); } /** |