From: Andrew Dolgov Date: Sun, 29 Nov 2009 08:17:22 +0000 (+0300) Subject: xml-rpc: getCategories() - return unread article count (closes #260) X-Git-Tag: 1.4.0~184^2~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e36f43d211f1a8d2e172d9a0efed99f210b998c9;p=tt-rss.git xml-rpc: getCategories() - return unread article count (closes #260) --- diff --git a/xml-rpc.php b/xml-rpc.php index 26a49ebd..4ad84678 100644 --- a/xml-rpc.php +++ b/xml-rpc.php @@ -93,12 +93,13 @@ 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");