summaryrefslogtreecommitdiff
path: root/modules/akismet/helpers/akismet_event.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-08-03 08:12:39 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-08-03 08:12:39 -0700
commit2e82c5e9ca3a924e98d8998b397d25c83d716d55 (patch)
tree2db525dbdf4adbdd404d9d95e171aa25c3092a5d /modules/akismet/helpers/akismet_event.php
parentbb8c83db819a99e34ba45e9c1c31a79e08b7c194 (diff)
parent7ad0808a117fd1db4e94da8d7763ccca1d69350a (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/akismet/helpers/akismet_event.php')
-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);
}
}