]> git.wh0rd.org Git - tt-rss.git/commitdiff
respect $fetch in update_all_feeds (forceUpdateAllFeeds handling)
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 19 Nov 2005 05:09:19 +0000 (06:09 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 19 Nov 2005 05:09:19 +0000 (06:09 +0100)
functions.php

index 4438c41bf7d2e04964c6995b0463cd0dc209371f..3b63a24e7b0ca5e5a82c8e47478617527076dfeb 100644 (file)
                                $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"]);
                        }