summaryrefslogtreecommitdiff
path: root/modules/akismet/helpers
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-08-03 21:41:38 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-08-03 21:41:38 -0600
commit9104fa7b55d4613792208956bbd0098bd89b033c (patch)
tree4d0af426fcbaf3a169a9b94fab02de7e3c9cf259 /modules/akismet/helpers
parentcc2711dce99972f60bf590fe858b2eaa9d0d2397 (diff)
parent7ad0808a117fd1db4e94da8d7763ccca1d69350a (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/akismet/helpers')
-rw-r--r--modules/akismet/helpers/akismet_event.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/akismet/helpers/akismet_event.php b/modules/akismet/helpers/akismet_event.php
index d6cde222..cec6d95d 100644
--- a/modules/akismet/helpers/akismet_event.php
+++ b/modules/akismet/helpers/akismet_event.php
@@ -40,14 +40,14 @@ class akismet_event_Core {
$comment->save();
}
- static function comment_updated($comment) {
+ static function comment_updated($original, $new) {
if (!module::get_var("akismet", "api_key")) {
return;
}
- if ($comment->original("state") != "spam" && $comment->state == "spam") {
+ if ($original->state != "spam" && $new->state == "spam") {
akismet::submit_spam($new);
- } else if ($comment->original("state") == "spam" && $comment->state != "spam") {
+ } else if ($original->state == "spam" && $new->state != "spam") {
akismet::submit_ham($new);
}
}