summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-24 14:42:16 +0300
committerAndrew Dolgov <[email protected]>2010-11-24 14:42:16 +0300
commit2fe5afc63a71fb57c8858bd71055c0e6fc52505d (patch)
treefd9f88f6de89de704e04f7ea9254e5261388ba8b /functions.php
parent91c44064e8ace9566a54120bea846a41fd1a797c (diff)
remove MarkAllRead from viewfeed
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/functions.php b/functions.php
index b4105e805..5d1992bd5 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);