From: Andrew Dolgov Date: Sat, 11 Feb 2006 15:50:02 +0000 (+0100) Subject: allow manual forced feed updates if ENABLE_UPDATE_SCHEDULER is enabled (even if DAEMO... X-Git-Tag: 1.1.3~44 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=633d263b04ea20868bc5020bb4251f4a1fa6b13d;p=tt-rss.git allow manual forced feed updates if ENABLE_UPDATE_SCHEDULER is enabled (even if DAEMON_REFRESH_ONLY is active), got I hate commit messages --- diff --git a/backend.php b/backend.php index 8c988ae9..f103a5ab 100644 --- a/backend.php +++ b/backend.php @@ -1036,7 +1036,7 @@ if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0) { - if (ENABLE_UPDATE_SCHEDULER) { +/* if (ENABLE_UPDATE_SCHEDULER) { if ($cid == 0) { @@ -1045,12 +1045,14 @@ (".$_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") {