From 36e05046e05df61687627fb7f1241b51fb6b568d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 20 Aug 2007 13:58:11 +0100 Subject: rpc mark/pub return proper counters, rework all_counters_callback --- modules/backend-rpc.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'modules/backend-rpc.php') 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 "$id"; + print ""; + getGlobalCounters($link); + getLabelCounters($link); + if (get_pref($link, 'ENABLE_FEED_CATS')) { + getCategoryCounters($link); + } + print ""; } @@ -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 "$id"; + print ""; + getGlobalCounters($link); + getLabelCounters($link); + if (get_pref($link, 'ENABLE_FEED_CATS')) { + getCategoryCounters($link); + } + print ""; } -- cgit v1.2.3