From: Andrew Dolgov Date: Fri, 28 Oct 2005 09:38:36 +0000 (+0100) Subject: fix DAEMON_REFRESH_ONLY handling X-Git-Tag: 1.0.7~15 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c5142ccae7e7c06bd3c2d66d30c769290b8e87e4;p=tt-rss.git fix DAEMON_REFRESH_ONLY handling --- diff --git a/backend.php b/backend.php index ae849900..353062d1 100644 --- a/backend.php +++ b/backend.php @@ -320,6 +320,7 @@ } if ($subop == "forceUpdateAllFeeds" || $subop == "updateAllFeeds") { + update_all_feeds($link, true); $omode = $_GET["omode"]; diff --git a/functions.php b/functions.php index 9d0016c7..5057d23c 100644 --- a/functions.php +++ b/functions.php @@ -22,8 +22,10 @@ if (WEB_DEMO_MODE) return; - if (! ($_GET["daemon"] && DAEMON_REFRESH_ONLY)) { - return; + if (DAEMON_REFRESH_ONLY) { + if (!$_GET["daemon"]) { + return; + } } db_query($link, "BEGIN"); @@ -39,7 +41,7 @@ if (!$line["last_updated"] || time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) { - + update_rss_feed($link, $line["feed_url"], $line["id"]); } }