From ffbe082dd0fcaf83658ac0a13ad1bdddeb4e0138 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 6 Nov 2010 22:19:08 +0300 Subject: headlines: use JSON instead of separate helper xml objects like headlines-unread --- backend.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 521472051..761fc0dc0 100644 --- a/backend.php +++ b/backend.php @@ -363,8 +363,8 @@ print "]]>"; - print ""; - print ""; + //print ""; + //print ""; $headlines_unread = ccache_find($link, $returned_feed, $_SESSION["uid"], $cat_view, true); @@ -374,8 +374,19 @@ } - print ""; - printf("", $disable_cache); + //print ""; + //printf("", $disable_cache); + + print " (int) $headlines_count, + "vgroup_last_feed" => $vgroup_last_feed, + "unread" => (int) $headlines_unread, + "disable_cache" => (bool) $disable_cache); + + print json_encode($info); + + print "]]>"; if ($_REQUEST["debug"]) $timing_info = print_checkpoint("10", $timing_info); -- cgit v1.2.3-54-g00ecf