1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-28 12:10:52 +02:00

remove MarkAllRead from viewfeed

This commit is contained in:
Andrew Dolgov 2010-11-24 14:42:16 +03:00
parent 91c44064e8
commit 2fe5afc63a

View File

@ -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);