]> git.wh0rd.org Git - tt-rss.git/commitdiff
allow manual forced feed updates if ENABLE_UPDATE_SCHEDULER is enabled (even if DAEMO...
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 11 Feb 2006 15:50:02 +0000 (16:50 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 11 Feb 2006 15:50:02 +0000 (16:50 +0100)
backend.php

index 8c988ae955ba9970e587c5798c11163888a2de3b..f103a5abe9ee5c21bcd3ec038e363dd668b28594 100644 (file)
 
                if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0) {
 
-                       if (ENABLE_UPDATE_SCHEDULER) {
+/*                     if (ENABLE_UPDATE_SCHEDULER) {
 
                                if ($cid == 0) {
 
                                                (".$_SESSION["uid"].", '$feed', NOW())");
                                }
 
-                       } else {
-                               $tmp_result = db_query($link, "SELECT feed_url FROM ttrss_feeds
-                                       WHERE id = '$feed'");
-                               $feed_url = db_fetch_result($tmp_result, 0, "feed_url");
-                               update_rss_feed($link, $feed_url, $feed);
-                       }
+                       } else { 
+                               // fixme update_rss_feed...
+                       } */
+
+                       $tmp_result = db_query($link, "SELECT feed_url FROM ttrss_feeds
+                               WHERE id = '$feed'");
+                       $feed_url = db_fetch_result($tmp_result, 0, "feed_url");                                
+                       update_rss_feed($link, $feed_url, $feed, ENABLE_UPDATE_SCHEDULER);
                }
 
                if ($subop == "MarkAllRead")  {