aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2011-11-05 23:02:13 +0000
committermistic100 <mistic@piwigo.org>2011-11-05 23:02:13 +0000
commit8fcd8dfc0696175f19fe93665a69a50c93fd14a1 (patch)
treebdbc832ad73bd1ff237105651345a66af5ea9dd1
parent7343f339bd583966276cd98e3717f64088cfb6ba (diff)
merge r12556 from trunk (feature:2495 add triggers for comment validation and deletion)
git-svn-id: http://piwigo.org/svn/branches/2.3@12557 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_comment.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/functions_comment.inc.php b/include/functions_comment.inc.php
index b2a4547d1..569ada0fc 100644
--- a/include/functions_comment.inc.php
+++ b/include/functions_comment.inc.php
@@ -222,6 +222,8 @@ $user_where_clause.'
'comment_id' => $comment_id
));
}
+
+ trigger_action('user_comment_deletion', $comment_id);
}
/**
@@ -384,5 +386,7 @@ UPDATE '.COMMENTS_TABLE.'
WHERE id = '.$comment_id.'
;';
pwg_query($query);
+
+ trigger_action('user_comment_validation', $comment_id);
}
?> \ No newline at end of file