summaryrefslogtreecommitdiff
path: root/modules/backend-rpc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-02-05 22:29:34 +0300
committerAndrew Dolgov <[email protected]>2009-02-05 22:29:34 +0300
commit75aa83ec611ed0af80232ababbef26363a498310 (patch)
tree84c8e194d01682f5edc0f3be35aa692f58bcf8cf /modules/backend-rpc.php
parentd8781c912dc0476af3ac7b858aedf6f3089e604e (diff)
offline: store category collapsed state
Diffstat (limited to 'modules/backend-rpc.php')
-rw-r--r--modules/backend-rpc.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index edc167695..8905012f6 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -547,15 +547,18 @@
print "<feed-categories>";
- $result = db_query($link, "SELECT id, title FROM
+ $result = db_query($link, "SELECT id, title, collapsed FROM
ttrss_feed_categories WHERE owner_uid = ".$_SESSION["uid"]);
- print "<category id=\"0\"><![CDATA[";
+ print "<category id=\"0\" collapsed=\"".
+ (int)$_COOKIE["ttrss_vf_uclps"]."\"><![CDATA[";
print __("Uncategorized");
print "]]></category>";
while ($line = db_fetch_assoc($result)) {
- print "<category id=\"".$line["id"]."\"><![CDATA[";
+ print "<category
+ id=\"".$line["id"]."\"
+ collapsed=\"".(int)sql_bool_to_bool($line["collapsed"])."\"><![CDATA[";
print $line["title"];
print "]]></category>";
}