]> git.wh0rd.org - tt-rss.git/commitdiff
tweak score display (2)
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 5 May 2008 06:28:00 +0000 (07:28 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 5 May 2008 06:28:00 +0000 (07:28 +0100)
modules/pref-filters.php

index 031e2a24b613740679863ccc70bd01629e181b8e..18c78da6cd3b9d63d4e2488f54655365692a784d 100644 (file)
                                        $line["action_param"] = "&mdash;";
                                } else if ($line["action_name"] == "score") {
 
-                                       if ($line["action_param"] > 100) { 
-                                               $score_pic = "score_high.png"; 
-                                       } else if ($line["action_param"] < -100) {
-                                               $score_pic = "score_low.png"; 
-                                       } else { 
-                                               $score_pic = "score_neutral.png"; 
-                                       }
+                                       $score_pic = get_score_pic($line["action_param"]);
 
                                        $score_pic = "<img class='hlScorePic' src=\"images/$score_pic\">";