]> git.wh0rd.org Git - tt-rss.git/commitdiff
support for selective output in forceUpdateAllFeeds
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 16 Oct 2005 09:03:18 +0000 (10:03 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 16 Oct 2005 09:03:18 +0000 (10:03 +0100)
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>";
                }