From: Andrew Dolgov Date: Sat, 19 Nov 2005 05:09:19 +0000 (+0100) Subject: respect $fetch in update_all_feeds (forceUpdateAllFeeds handling) X-Git-Tag: schema_feature_freeze_for_1.1~207 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=93d40f50ba79703664d4d1cfef89210b114eee28;p=tt-rss.git respect $fetch in update_all_feeds (forceUpdateAllFeeds handling) --- diff --git a/functions.php b/functions.php index 4438c41b..3b63a24e 100644 --- a/functions.php +++ b/functions.php @@ -100,8 +100,8 @@ $upd_intl = get_pref($link, 'DEFAULT_UPDATE_INTERVAL'); } - if (!$line["last_updated"] || - time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) { + if ($fetch || (!$line["last_updated"] || + time() - strtotime($line["last_updated"]) > ($upd_intl * 60))) { update_rss_feed($link, $line["feed_url"], $line["id"]); }