summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-20 13:58:11 +0100
committerAndrew Dolgov <[email protected]>2007-08-20 13:58:11 +0100
commit36e05046e05df61687627fb7f1241b51fb6b568d (patch)
treefd351c1aeb1e1719b550e303a96d294a73778291 /modules
parent2fe69e22925eaab69748f1ef94106f2463494a57 (diff)
rpc mark/pub return proper counters, rework all_counters_callback
Diffstat (limited to 'modules')
-rw-r--r--modules/backend-rpc.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 3303b25f9..3a30543dd 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -68,7 +68,13 @@
$result = db_query($link, "UPDATE ttrss_user_entries SET marked = $mark
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
- print "<rpc-reply><mark>$id</mark></rpc-reply>";
+ print "<rpc-reply><counters>";
+ getGlobalCounters($link);
+ getLabelCounters($link);
+ if (get_pref($link, 'ENABLE_FEED_CATS')) {
+ getCategoryCounters($link);
+ }
+ print "</counters></rpc-reply>";
}
@@ -87,7 +93,13 @@
$result = db_query($link, "UPDATE ttrss_user_entries SET published = $pub
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
- print "<rpc-reply><pub>$id</pub></rpc-reply>";
+ print "<rpc-reply><counters>";
+ getGlobalCounters($link);
+ getLabelCounters($link);
+ if (get_pref($link, 'ENABLE_FEED_CATS')) {
+ getCategoryCounters($link);
+ }
+ print "</counters></rpc-reply>";
}