diff --git a/classes/article.php b/classes/article.php index e5c98b2c5..59830027b 100755 --- a/classes/article.php +++ b/classes/article.php @@ -253,6 +253,7 @@ class Article extends Handler_Protected { print json_encode(array("id" => $ids, "score" => (int)$score, + "score_class" => get_score_class($score), "score_pic" => get_score_pic($score))); } diff --git a/classes/feeds.php b/classes/feeds.php index a1f89ecd0..c7b4cd9a3 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -308,18 +308,10 @@ class Feeds extends Handler_Protected { $score = $line["score"]; - $score_pic = "images/" . get_score_pic($score); - - $score_pic = ""; - - if ($score > 500) { - $hlc_suffix = "high"; - } else if ($score < -100) { - $hlc_suffix = "low"; - } else { - $hlc_suffix = ""; - } + $score_pic = "" . + get_score_pic($score) . ""; + $score_class = get_score_class($score); $entry_author = $line["author"]; @@ -365,7 +357,7 @@ class Feeds extends Handler_Protected { } } - $reply['content'] .= "