diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-01-08 02:56:49 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-08 02:56:49 +0000 |
| commit | bc36ba609db3b030d28a8768023b35441f8b9b9e (patch) | |
| tree | c08b06dc707c53313066f966d9e3179d15244ad0 /modules/akismet/helpers/akismet_event.php | |
| parent | 8bf388a6f671faba94f46ad9e982139c211378ee (diff) | |
Add akismet::$test_mode, initialize it to TEST_MODE and don't contact
akismet if it's on. Force it on in the scaffolding so that we don't
try to run all comments we add from there through Akismet.
Diffstat (limited to 'modules/akismet/helpers/akismet_event.php')
| -rw-r--r-- | modules/akismet/helpers/akismet_event.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/modules/akismet/helpers/akismet_event.php b/modules/akismet/helpers/akismet_event.php index 2a42acb3..c18b217b 100644 --- a/modules/akismet/helpers/akismet_event.php +++ b/modules/akismet/helpers/akismet_event.php @@ -19,10 +19,6 @@ */ class akismet_event_Core { public static function comment_created($comment) { - if (TEST_MODE) { - return; - } - switch(akismet::check_comment($comment)) { case "spam": $comment->state = "spam"; @@ -41,10 +37,6 @@ class akismet_event_Core { } public static function comment_changed($old, $new) { - if (TEST_MODE) { - return; - } - if ($old->state != "spam" && $new->state == "spam") { akismet::submit_spam($new); } else if ($old->state == "spam" && $new->state != "spam") { |
