summaryrefslogtreecommitdiff
path: root/modules/comment/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r--modules/comment/helpers/comment.php8
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();