From a72cd54ce142425e6dd36bf7c6c0badb61b96a3f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Jun 2015 22:04:32 +0300 Subject: bayes: properly reset score when going good -> ugly article: add helper to refresh article score pic, properly set scorepic title --- plugins/af_sort_bayes/init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/af_sort_bayes/init.php') diff --git a/plugins/af_sort_bayes/init.php b/plugins/af_sort_bayes/init.php index 7e34ceac4..51a6f38bb 100644 --- a/plugins/af_sort_bayes/init.php +++ b/plugins/af_sort_bayes/init.php @@ -79,14 +79,14 @@ class Af_Sort_Bayes extends Plugin { switch ($current_category) { case "UGLY": $dst_category = "BAD"; - $score = -$this->score_modifier; + $score = $this->score_modifier; break; case "BAD": $dst_category = "BAD"; break; case "GOOD": $dst_category = "UGLY"; - $score = -$this->score_modifier; + $score = 0; break; } } -- cgit v1.2.3