From: Andrew Dolgov Date: Sat, 11 Feb 2006 14:05:22 +0000 (+0100) Subject: stub for update scheduler in backend X-Git-Tag: 1.1.3~47 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=cd907b7cbf759543030444ab57e6f985c3ba6300;p=tt-rss.git stub for update scheduler in backend --- diff --git a/backend.php b/backend.php index 5e93c37f..94a13406 100644 --- a/backend.php +++ b/backend.php @@ -703,23 +703,27 @@ if ($subop == "forceUpdateAllFeeds" || $subop == "updateAllFeeds") { - if ($subop == "forceUpdateAllFeeds" && ENABLE_FEED_CATS - - update_all_feeds($link, $subop == "forceUpdateAllFeeds"); + if (ENABLE_UPDATE_SCHEDULER) { - $omode = $_GET["omode"]; + // FIXME schedule update - if (!$omode) $omode = "tfl"; + } else { + update_all_feeds($link, $subop == "forceUpdateAllFeeds"); - print ""; - if (strchr($omode, "l")) getLabelCounters($link); - if (strchr($omode, "f")) getFeedCounters($link); - if (strchr($omode, "t")) getTagCounters($link); - if (get_pref($link, 'ENABLE_FEED_CATS')) { - getCategoryCounters($link); + $omode = $_GET["omode"]; + + if (!$omode) $omode = "tfl"; + + print ""; + if (strchr($omode, "l")) getLabelCounters($link); + if (strchr($omode, "f")) getFeedCounters($link); + if (strchr($omode, "t")) getTagCounters($link); + if (get_pref($link, 'ENABLE_FEED_CATS')) { + getCategoryCounters($link); + } + getGlobalCounters($link); + print ""; } - getGlobalCounters($link); - print ""; } /* GET["cmode"] = 0 - mark as read, 1 - as unread, 2 - toggle */