]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove AUTO_ASSIGN_LABELS (confusing, idiots keep enable it and complain of the results)
authorAndrew Dolgov <noreply@fakecake.org>
Sat, 21 Feb 2015 10:08:50 +0000 (13:08 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sat, 21 Feb 2015 10:08:50 +0000 (13:08 +0300)
classes/pref/prefs.php
include/rssfuncs.php

index da11f55e1bed81f454a5af0a334808caa89fed8c..096260bfb5a595092a407b46d83d4e69809d152a 100644 (file)
@@ -23,7 +23,6 @@ class Pref_Prefs extends Handler_Protected {
 
                $this->pref_help = array(
                        "ALLOW_DUPLICATE_POSTS" => array(__("Allow duplicate articles"), ""),
-                       "AUTO_ASSIGN_LABELS" => array(__("Assign articles to labels automatically"), ""),
                        "BLACKLISTED_TAGS" => array(__("Blacklisted tags"), __("When auto-detecting tags in articles these tags will not be applied (comma-separated list).")),
                        "CDM_AUTO_CATCHUP" => array(__("Automatically mark articles as read"), __("This option enables marking articles as read automatically while you scroll article list.")),
                        "CDM_EXPANDED" => array(__("Automatically expand articles in combined mode"), ""),
index 9d3d89c7fd4fca10e9f3f874b9e9922f78f215ea..f80bcbb2b79f505da7f64a4339da7f3895b9eeb2 100644 (file)
                                        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);
                        }