]> git.wh0rd.org Git - tt-rss.git/commitdiff
rpc/publ,mark: return some xml
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 9 Aug 2007 15:24:35 +0000 (16:24 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 9 Aug 2007 15:24:35 +0000 (16:24 +0100)
modules/backend-rpc.php

index 64b49ffe4894f87293eda156a709bb7d1ae8c90c..3d0adf57c23978a5839b3654e7e8c008334424df 100644 (file)
@@ -67,6 +67,9 @@
 
                        $result = db_query($link, "UPDATE ttrss_user_entries SET marked = $mark
                                WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
+
+                       print "<rpc-reply><mark>$id</mark></rpc-reply>";
+
                }
 
                if ($subop == "publ") {
@@ -83,6 +86,9 @@
 
                        $result = db_query($link, "UPDATE ttrss_user_entries SET published = $pub
                                WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
+
+                       print "<rpc-reply><pub>$id</pub></rpc-reply>";
+
                }
 
                if ($subop == "updateFeed") {