From 3b321bcabc40694b26174f670287eb28266233bb Mon Sep 17 00:00:00 2001 From: Gordon Anderson Date: Tue, 27 Nov 2012 19:56:21 +0700 Subject: [PATCH] BUGFIX: Added missing onAfterPostComment hook --- code/controllers/CommentingController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/controllers/CommentingController.php b/code/controllers/CommentingController.php index d2f6faa..ee1fb4c 100644 --- a/code/controllers/CommentingController.php +++ b/code/controllers/CommentingController.php @@ -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);