DAEMON_REFRESH_ONLY makes a lot more sense as a global option

This commit is contained in:
Andrew Dolgov
2005-11-23 13:26:29 +01:00
parent b83c75451c
commit 30a49c9227
4 changed files with 14 additions and 11 deletions

View File

@@ -91,10 +91,8 @@
purge_old_posts($link);
}
if (get_pref($link, 'DAEMON_REFRESH_ONLY', $user_id)) {
if (!$_GET["daemon"]) {
return;
}
if (DAEMON_REFRESH_ONLY && !$_GET["daemon"]) {
return;
}
db_query($link, "BEGIN");