diff options
author | Andrew Dolgov <[email protected]> | 2015-02-21 13:08:50 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-02-21 13:08:50 +0300 |
commit | e6c826fa2f17a900e06b316836326eee58330265 (patch) | |
tree | b458db67b5e94b2fb106f8f50fa8248f120dfe15 /include/rssfuncs.php | |
parent | 11031729096efea49173061f247e5daff8fdc954 (diff) |
remove AUTO_ASSIGN_LABELS (confusing, idiots keep enable it and complain of the results)
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 9d3d89c7f..f80bcbb2b 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -1091,20 +1091,6 @@ db_query("COMMIT"); } - if (get_pref("AUTO_ASSIGN_LABELS", $owner_uid, false)) { - _debug("auto-assigning labels...", $debug_enabled); - - foreach ($labels as $label) { - $caption = preg_quote($label["caption"]); - - if ($caption && preg_match("/\b$caption\b/i", "$tags_str " . strip_tags($entry_content) . " $entry_title")) { - if (!labels_contains_caption($article_labels, $caption)) { - label_add_article($entry_ref_id, $caption, $owner_uid); - } - } - } - } - _debug("article processed", $debug_enabled); } |