diff options
author | Andrew Dolgov <[email protected]> | 2010-11-06 22:19:08 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-06 22:19:08 +0300 |
commit | ffbe082dd0fcaf83658ac0a13ad1bdddeb4e0138 (patch) | |
tree | c6524895529162af96a1a42e1aebd128b75f632f /functions.php | |
parent | f72a7b6696286b2b1bb6a3d0ae33bab49e3552d0 (diff) |
headlines: use JSON instead of separate helper xml objects like headlines-unread
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/functions.php b/functions.php index abc52b43e..d5b3c436d 100644 --- a/functions.php +++ b/functions.php @@ -6842,10 +6842,16 @@ print "</div>]]>"; print "</headlines>"; - print "<headlines-count value=\"0\"/>"; - print "<vgroup-last-feed value=\"0\"/>"; - print "<headlines-unread value=\"0\"/>"; - print "<disable-cache value=\"1\"/>"; + print "<headlines-info><![CDATA["; + + $info = array("count" => 0, + "vgroup_last_feed" => '', + "unread" => 0, + "disable_cache" => true); + + print json_encode($info); + + print "]]></headlines-info>"; } |