From 2fe5afc63a71fb57c8858bd71055c0e6fc52505d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 24 Nov 2010 14:42:16 +0300 Subject: [PATCH] remove MarkAllRead from viewfeed --- functions.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/functions.php b/functions.php index b4105e80..5d1992bd 100644 --- a/functions.php +++ b/functions.php @@ -2416,28 +2416,6 @@ } } - 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"; @@ -4772,10 +4750,6 @@ 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); -- 2.39.5