stub for update scheduler in backend
This commit is contained in:
parent
9d1ef64ea9
commit
cd907b7cbf
28
backend.php
28
backend.php
|
@ -703,23 +703,27 @@
|
||||||
|
|
||||||
if ($subop == "forceUpdateAllFeeds" || $subop == "updateAllFeeds") {
|
if ($subop == "forceUpdateAllFeeds" || $subop == "updateAllFeeds") {
|
||||||
|
|
||||||
if ($subop == "forceUpdateAllFeeds" && ENABLE_FEED_CATS
|
if (ENABLE_UPDATE_SCHEDULER) {
|
||||||
|
|
||||||
update_all_feeds($link, $subop == "forceUpdateAllFeeds");
|
// FIXME schedule update
|
||||||
|
|
||||||
$omode = $_GET["omode"];
|
} else {
|
||||||
|
update_all_feeds($link, $subop == "forceUpdateAllFeeds");
|
||||||
|
|
||||||
if (!$omode) $omode = "tfl";
|
$omode = $_GET["omode"];
|
||||||
|
|
||||||
print "<rpc-reply>";
|
if (!$omode) $omode = "tfl";
|
||||||
if (strchr($omode, "l")) getLabelCounters($link);
|
|
||||||
if (strchr($omode, "f")) getFeedCounters($link);
|
print "<rpc-reply>";
|
||||||
if (strchr($omode, "t")) getTagCounters($link);
|
if (strchr($omode, "l")) getLabelCounters($link);
|
||||||
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
if (strchr($omode, "f")) getFeedCounters($link);
|
||||||
getCategoryCounters($link);
|
if (strchr($omode, "t")) getTagCounters($link);
|
||||||
|
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
||||||
|
getCategoryCounters($link);
|
||||||
|
}
|
||||||
|
getGlobalCounters($link);
|
||||||
|
print "</rpc-reply>";
|
||||||
}
|
}
|
||||||
getGlobalCounters($link);
|
|
||||||
print "</rpc-reply>";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* GET["cmode"] = 0 - mark as read, 1 - as unread, 2 - toggle */
|
/* GET["cmode"] = 0 - mark as read, 1 - as unread, 2 - toggle */
|
||||||
|
|
Loading…
Reference in New Issue