BUGFIX: Added missing onAfterPostComment hook

This commit is contained in:
Gordon Anderson 2012-11-27 19:56:21 +07:00
parent 50ff534ef3
commit 3b321bcabc
1 changed files with 3 additions and 0 deletions

View File

@ -369,6 +369,9 @@ class CommentingController extends Controller {
$comment->Moderated = ($moderated) ? false : true;
$comment->write();
// extend hook to allow extensions. Also see onBeforePostComment
$this->extend('onAfterPostComment', $comment);
// clear the users comment since it passed validation
Cookie::set('CommentsForm_Comment', false);