From: Andrew Dolgov Date: Sun, 27 Nov 2005 14:49:36 +0000 (+0100) Subject: move DAEMON_REFRESH_ONLY check to update_rss_feed X-Git-Tag: schema_feature_freeze_for_1.1~67 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=21cfcdf29b20d43c0577fb2168ba7af7d790a123;p=tt-rss.git move DAEMON_REFRESH_ONLY check to update_rss_feed --- diff --git a/functions.php b/functions.php index 2dc70a16..a4156651 100644 --- a/functions.php +++ b/functions.php @@ -97,10 +97,6 @@ purge_old_posts($link); } - if (DAEMON_REFRESH_ONLY && !$_GET["daemon"]) { - return; - } - // db_query($link, "BEGIN"); $result = db_query($link, "SELECT feed_url,id, @@ -168,6 +164,10 @@ if (WEB_DEMO_MODE) return; + if (DAEMON_REFRESH_ONLY && !$_GET["daemon"]) { + return; + } + $feed = db_escape_string($feed); error_reporting(0);