]> git.wh0rd.org - tt-rss.git/commitdiff
stub for update scheduler in backend
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 11 Feb 2006 14:05:22 +0000 (15:05 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 11 Feb 2006 14:05:22 +0000 (15:05 +0100)
backend.php

index 5e93c37f8a9090dacb04ecf5e94016fa6a396458..94a13406acd7ac0f2265e35121c69eeab9ede7c8 100644 (file)
 
                if ($subop == "forceUpdateAllFeeds" || $subop == "updateAllFeeds") {
        
-                       if ($subop == "forceUpdateAllFeeds" && ENABLE_FEED_CATS
-       
-                       update_all_feeds($link, $subop == "forceUpdateAllFeeds");                       
+                       if (ENABLE_UPDATE_SCHEDULER) {
 
-                       $omode = $_GET["omode"];
+                               // FIXME schedule update
 
-                       if (!$omode) $omode = "tfl";
+                       } else {        
+                               update_all_feeds($link, $subop == "forceUpdateAllFeeds");                       
 
-                       print "<rpc-reply>";
-                       if (strchr($omode, "l")) getLabelCounters($link);
-                       if (strchr($omode, "f")) getFeedCounters($link);
-                       if (strchr($omode, "t")) getTagCounters($link);
-                       if (get_pref($link, 'ENABLE_FEED_CATS')) {
-                               getCategoryCounters($link);
+                               $omode = $_GET["omode"];
+
+                               if (!$omode) $omode = "tfl";
+
+                               print "<rpc-reply>";
+                               if (strchr($omode, "l")) getLabelCounters($link);
+                               if (strchr($omode, "f")) getFeedCounters($link);
+                               if (strchr($omode, "t")) getTagCounters($link);
+                               if (get_pref($link, 'ENABLE_FEED_CATS')) {
+                                       getCategoryCounters($link);
+                               }
+                               getGlobalCounters($link);
+                               print "</rpc-reply>";
                        }
-                       getGlobalCounters($link);
-                       print "</rpc-reply>";
                }
        
                /* GET["cmode"] = 0 - mark as read, 1 - as unread, 2 - toggle */