move DAEMON_REFRESH_ONLY check to update_rss_feed
This commit is contained in:
parent
b8dc6247ef
commit
21cfcdf29b
|
@ -97,10 +97,6 @@
|
||||||
purge_old_posts($link);
|
purge_old_posts($link);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DAEMON_REFRESH_ONLY && !$_GET["daemon"]) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// db_query($link, "BEGIN");
|
// db_query($link, "BEGIN");
|
||||||
|
|
||||||
$result = db_query($link, "SELECT feed_url,id,
|
$result = db_query($link, "SELECT feed_url,id,
|
||||||
|
@ -168,6 +164,10 @@
|
||||||
|
|
||||||
if (WEB_DEMO_MODE) return;
|
if (WEB_DEMO_MODE) return;
|
||||||
|
|
||||||
|
if (DAEMON_REFRESH_ONLY && !$_GET["daemon"]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$feed = db_escape_string($feed);
|
$feed = db_escape_string($feed);
|
||||||
|
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
|
|
Loading…
Reference in New Issue