diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-31 06:19:35 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-31 06:19:35 +0000 |
commit | 517ddf53883214f225ad76997fd033faae276a42 (patch) | |
tree | 65afda6518c32acab570994d28fbb736a5694ca7 /modules/comment/helpers | |
parent | 9ad253a2bbd76048934c304c54239b94f45b3809 (diff) |
First look at the spam filter module. At this point, it does not connect to any spam services. But you can go into the admin screen and choose the driver and set the api key.
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r-- | modules/comment/helpers/comment.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index e92c59a0..9617b706 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -51,8 +51,8 @@ class comment_Core { $comment->created = time(); // @todo Figure out how to mock up the test of the spam_filter - if (module::is_installed("spam_filter") && !TEST_MODE) { - spam_filter::verify_comment($comment); + if (module::is_installed("spam_filter") && TEST_MODE == 0) { + Spam_Filter::instance()->check_comment($comment); } else { $comment->published = true; } @@ -81,8 +81,8 @@ class comment_Core { $comment->user_agent = Kohana::$user_agent; // @todo Figure out how to mock up the test of the spam_filter - if (module::is_installed("spam_filter") && !TEST_MODE) { - spam_filter::verify_comment($comment); + if (module::is_installed("spam_filter") && TEST_MODE == 0) { + Spam_Filter::instance()->check_comment($comment); } $comment->save(); |