1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 12:51:29 +00:00

add some async counters handling

This commit is contained in:
Andrew Dolgov
2007-08-24 05:04:55 +01:00
parent dcf7fd08d1
commit 1341ea0dbe
3 changed files with 89 additions and 63 deletions

View File

@@ -165,20 +165,22 @@
print "<counters>";
$omode = $_GET["omode"];
if (!$omode) $omode = "tflc";
if (strchr($omode, "l")) getLabelCounters($link);
if (strchr($omode, "c")) {
if (get_pref($link, 'ENABLE_FEED_CATS')) {
getCategoryCounters($link);
}
}
if ($global_unread_caller != $global_unread) {
$omode = $_GET["omode"];
if (!$omode) $omode = "tflc";
if (strchr($omode, "l")) getLabelCounters($link);
if (strchr($omode, "f")) getFeedCounters($link);
if (strchr($omode, "t")) getTagCounters($link);
if (strchr($omode, "c")) {
if (get_pref($link, 'ENABLE_FEED_CATS')) {
getCategoryCounters($link);
}
}
}
getGlobalCounters($link, $global_unread);