summaryrefslogtreecommitdiff
path: root/modules/comment/controllers/admin_comments.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-16 04:06:03 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-16 04:06:03 +0000
commit2920640c2b0a4c2c1e5c47aac285ebec49cd6241 (patch)
tree3b16900c856f2c0865a5bdaeca3e20ee2e7e26ee /modules/comment/controllers/admin_comments.php
parentecf94c74d8f9712c5bd09058cf1ff14bec32ac98 (diff)
Fix validation when adding new comments.
Fire off the appropriate item_related_update events as appropriate.
Diffstat (limited to 'modules/comment/controllers/admin_comments.php')
-rw-r--r--modules/comment/controllers/admin_comments.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/comment/controllers/admin_comments.php b/modules/comment/controllers/admin_comments.php
index 68ede43d..c4bdb92b 100644
--- a/modules/comment/controllers/admin_comments.php
+++ b/modules/comment/controllers/admin_comments.php
@@ -126,6 +126,9 @@ class Admin_Comments_Controller extends Admin_Controller {
$comment->state = $state;
$comment->save();
module::event("comment_updated", $orig, $comment);
+ if ($orig->state == "published" || $comment->state == "published") {
+ module::event("item_related_update", $comment->item);
+ }
}
}