summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-06 22:19:08 +0300
committerAndrew Dolgov <[email protected]>2010-11-06 22:19:08 +0300
commitffbe082dd0fcaf83658ac0a13ad1bdddeb4e0138 (patch)
treec6524895529162af96a1a42e1aebd128b75f632f /functions.php
parentf72a7b6696286b2b1bb6a3d0ae33bab49e3552d0 (diff)
headlines: use JSON instead of separate helper xml objects like headlines-unread
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php14
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>";
}