From e8e0b8c05333f8bfeda8b1fb838e324a6f87520e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 8 Mar 2012 07:01:37 -0600 Subject: [PATCH] Use new event to show forms --- ActivitySpamPlugin.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ActivitySpamPlugin.php b/ActivitySpamPlugin.php index f68d2ad605..ad33f6e998 100644 --- a/ActivitySpamPlugin.php +++ b/ActivitySpamPlugin.php @@ -172,7 +172,7 @@ class ActivitySpamPlugin extends Plugin return false; } - function onStartShowNoticeOptions($nli) + function onEndShowNoticeOptionItems($nli) { $notice = $nli->getNotice(); $out = $nli->getOut(); @@ -186,14 +186,10 @@ class ActivitySpamPlugin extends Plugin // XXX: show a question-mark or something } else if ($score->is_spam) { $form = new TrainHamForm($out, $notice); - $out->elementStart('div', 'notice-options'); $form->show(); - $out->elementEnd('div'); } else if (!$score->is_spam) { $form = new TrainSpamForm($out, $notice); - $out->elementStart('div', 'notice-options'); $form->show(); - $out->elementEnd('div'); } } -- 2.39.5