]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix multiple TAG filters not being applied properly
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 27 Jan 2010 15:28:37 +0000 (18:28 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 27 Jan 2010 15:28:37 +0000 (18:28 +0300)
functions.php

index 6a18ffbf3b6f9098528074b8836950771995ce55..ec0f484ad4c8b5e6d644e01e8c80793d00776f8e 100644 (file)
 
                                # check for manual tags
 
-                               $tag_filter = find_article_filter($article_filters, "tag"); 
+                               foreach ($article_filters as $f) {
+                                       if ($f[0] == "tag") {
 
-                               if ($tag_filter) {
+                                               $manual_tags = trim_array(split(",", $f[1]));
 
-                                       $manual_tags = trim_array(split(",", $tag_filter[1]));
-
-                                       foreach ($manual_tags as $tag) {
-                                               if (tag_is_valid($tag)) {
-                                                       array_push($entry_tags, $tag);
+                                               foreach ($manual_tags as $tag) {
+                                                       if (tag_is_valid($tag)) {
+                                                               array_push($entry_tags, $tag);
+                                                       }
                                                }
                                        }
                                }