summaryrefslogtreecommitdiff
path: root/plugins/af_sort_bayes/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-06-17 22:04:32 +0300
committerAndrew Dolgov <[email protected]>2015-06-17 22:04:32 +0300
commita72cd54ce142425e6dd36bf7c6c0badb61b96a3f (patch)
treeaa1bb26ed763ac858b1eb42443611cff3ef27dff /plugins/af_sort_bayes/init.php
parent308c55c0f1671525c804291bad7d0d853e0eb998 (diff)
bayes: properly reset score when going good -> ugly
article: add helper to refresh article score pic, properly set scorepic title
Diffstat (limited to 'plugins/af_sort_bayes/init.php')
-rw-r--r--plugins/af_sort_bayes/init.php4
1 files changed, 2 insertions, 2 deletions
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;
}
}