]> git.wh0rd.org - tt-rss.git/blobdiff - include/rssfuncs.php
move label stuff to Labels class
[tt-rss.git] / include / rssfuncs.php
index d816450fccefbd73e324c03cfb389569460e52fa..33b6ff6e4018f1df17948ce158ecb36c2c37ec85 100644 (file)
                                _debug("assigning labels [other]...", $debug_enabled);
 
                                foreach ($article_labels as $label) {
-                                       label_add_article($entry_ref_id, $label[1], $owner_uid);
+                                       Labels::add_article($entry_ref_id, $label[1], $owner_uid);
                                }
 
                                _debug("assigning labels [filters]...", $debug_enabled);
                foreach ($filters as $f) {
                        if ($f["type"] == "label") {
                                if (!labels_contains_caption($article_labels, $f["param"])) {
-                                       label_add_article($id, $f["param"], $owner_uid);
+                                       Labels::add_article($id, $f["param"], $owner_uid);
                                }
                        }
                }