]> git.wh0rd.org Git - tt-rss.git/commitdiff
xml-rpc: getCategories() - return unread article count (closes #260)
authorAndrew Dolgov <fox@bah.org.ru>
Sun, 29 Nov 2009 08:17:22 +0000 (11:17 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Sun, 29 Nov 2009 08:17:22 +0000 (11:17 +0300)
xml-rpc.php

index 26a49ebd1de85f527d584e5dab5476616d13936c..4ad8467845d476fbff166df13cedbe0b00e780a6 100644 (file)
 
                        while ($line = db_fetch_assoc($result)) {
 
-                               $unread = getFeedUnread($link, $line["id"]);
+                               $unread = getFeedUnread($link, $line["id"], true);
                                
                                $line_struct = new xmlrpcval(
                                        array(
                                                "title" => new xmlrpcval($line["title"]),
-                                               "id" => new xmlrpcval($line["id"], "int")
+                                               "id" => new xmlrpcval($line["id"], "int"),
+                                               "unread" => new xmlrpcval($unread, "int")
                                        ),
                                        "struct");