]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove MarkAllRead from viewfeed
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 24 Nov 2010 11:42:16 +0000 (14:42 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 24 Nov 2010 11:42:16 +0000 (14:42 +0300)
functions.php

index b4105e805f6a07a93adf35fcde5bb1624120c79a..5d1992bd534412d43d7fc946f31161b62cf38e4c 100644 (file)
                        }
        }
 
-       function update_generic_feed($link, $feed, $cat_view, $force_update = false) {
-                       if ($cat_view) {
-
-                               if ($feed > 0) {
-                                       $cat_qpart = "cat_id = '$feed'";
-                               } else {
-                                       $cat_qpart = "cat_id IS NULL";
-                               }
-                               
-                               $tmp_result = db_query($link, "SELECT id FROM ttrss_feeds
-                                       WHERE $cat_qpart AND owner_uid = " . $_SESSION["uid"]);
-
-                               while ($tmp_line = db_fetch_assoc($tmp_result)) {                                       
-                                       $feed_id = $tmp_line["id"];
-                                       update_rss_feed($link, $feed_id, $force_update);
-                               }
-
-                       } else {
-                               update_rss_feed($link, $feed, $force_update);
-                       }
-       }
-
        function getAllCounters($link, $omode = "flc", $active_feed = false) {
 
                if (!$omode) $omode = "flc";
                        catchupArticlesById($link, $ids, $cmode);
                }
 
-               if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0 && !$cat_view) {
-                       update_generic_feed($link, $feed, $cat_view, true);
-               }
-
                if ($subop == "MarkAllRead")  {
                        catchup_feed($link, $feed, $cat_view);