summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-27 15:49:36 +0100
committerAndrew Dolgov <[email protected]>2005-11-27 15:49:36 +0100
commit21cfcdf29b20d43c0577fb2168ba7af7d790a123 (patch)
tree895fa01cf8d8ad23b8d32aa2efa15d3112bf5f72 /functions.php
parentb8dc6247ef4b02fb2c5fe666e6b4ae777baf95aa (diff)
move DAEMON_REFRESH_ONLY check to update_rss_feed
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/functions.php b/functions.php
index 2dc70a161..a4156651e 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);