diff options
author | Andrew Dolgov <[email protected]> | 2005-12-03 15:25:40 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-12-03 15:25:40 +0100 |
commit | 1f2b01ed8ee1a7934be8d4ea4e7bfc2980910e3a (patch) | |
tree | 4fd86bf07603540a52b63e6c80101f026749da16 /functions.php | |
parent | 8fe19cd81eae2b5a59652135e11463620b02419c (diff) |
update_feeds.php for CLI
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/functions.php b/functions.php index 6b6060573..ba80bab94 100644 --- a/functions.php +++ b/functions.php @@ -1,5 +1,4 @@ <? - session_start(); if ($_GET["debug"]) { define('DEFAULT_ERROR_LEVEL', E_ALL); @@ -90,7 +89,7 @@ (SELECT COUNT(int_id) FROM ttrss_user_entries WHERE ref_id = id) = 0"); } - function update_all_feeds($link, $fetch, $user_id = false) { + function update_all_feeds($link, $fetch, $user_id = false, $force_daemon = false) { if (WEB_DEMO_MODE) return; @@ -115,7 +114,7 @@ if ($fetch || (!$line["last_updated"] || time() - strtotime($line["last_updated"]) > ($upd_intl * 60))) { - update_rss_feed($link, $line["feed_url"], $line["id"]); + update_rss_feed($link, $line["feed_url"], $line["id"], $force_daemon); } } |