mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
Fix validation when adding new comments.
Fire off the appropriate item_related_update events as appropriate.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user