]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
support for selective output in forceUpdateAllFeeds
[tt-rss.git] / backend.php
index 2caa2513d21ad0a767e9b189f65d9eeaa4b0cbf4..c1fc6020c687440151e8d393eaa1ab294186d757 100644 (file)
@@ -72,7 +72,7 @@
 
                        $count = db_fetch_result($tmp_result, 0, "count");
 
-                       print "<feed id=\"$id\" counter=\"$count\"/>";
+                       print "<label id=\"$id\" counter=\"$count\"/>";
 
                        error_reporting (E_ERROR | E_WARNING | E_PARSE);
        
                if ($subop == "forceUpdateAllFeeds" || $subop == "updateAllFeeds") {
                        update_all_feeds($link, true);                  
 
+                       $omode = $_GET["omode"];
+
+                       if (!$omode) $omode = "tfl";
+
                        print "<rpc-reply>";
-                       getLabelCounters($link);
-                       getFeedCounters($link);
-                       getTagCounters($link);
+                       if (strchr($omode, "l")) getLabelCounters($link);
+                       if (strchr($omode, "f")) getFeedCounters($link);
+                       if (strchr($omode, "t")) getTagCounters($link);
                        print "</rpc-reply>";
                }