]> git.wh0rd.org - tt-rss.git/blobdiff - include/rssfuncs.php
implement multiple rule/action filters
[tt-rss.git] / include / rssfuncs.php
index 241896f8bcb737ed749cea292e265efea9656441..47e0c68f32612c98f4261bf4c2a7e63175ad9ff1 100644 (file)
                                        $entry_tags[$i] = mb_strtolower($entry_tags[$i], 'utf-8');
 
                                if ($debug_enabled) {
-                                       _debug("update_rss_feed: unfiltered tags found:");
-                                       print_r($entry_tags);
+                                       //_debug("update_rss_feed: unfiltered tags found:");
+                                       //print_r($entry_tags);
                                }
 
                                # sanitize content
                                // check for manual tags (we have to do it here since they're loaded from filters)
 
                                foreach ($article_filters as $f) {
-                                       if ($f[0] == "tag") {
+                                       if ($f["type"] == "tag") {
 
-                                               $manual_tags = trim_array(explode(",", $f[1]));
+                                               $manual_tags = trim_array(explode(",", $f["param"]));
 
                                                foreach ($manual_tags as $tag) {
                                                        if (tag_is_valid($tag)) {