]> git.wh0rd.org Git - tt-rss.git/commitdiff
pref-filters: do not show action_param for filter types which take no params
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 11 Nov 2010 20:23:29 +0000 (23:23 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 11 Nov 2010 20:23:29 +0000 (23:23 +0300)
modules/pref-filters.php

index 5df8a8cea53e8cd90ae10114bb959bab8a3cd7aa..1d4f0f98bc2c36a1d0f4bf9dd270a6fe6d931a1c 100644 (file)
        
                                if (!$line["feed_title"]) $line["feed_title"] = __("All feeds");
 
+                               if (array_search($line["action_name"], 
+                                       array("score", "tag", "label")) === false) {
+
+                                               $line["action_param"] = false;
+                               }
+
                                if (!$line["action_param"]) {
                                        $line["action_param"] = "&mdash;";
                                } else if ($line["action_name"] == "score") {