summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-08-21 08:34:49 +0100
committerAndrew Dolgov <[email protected]>2006-08-21 08:34:49 +0100
commit99018440a5cdd9b1a5de231b20423942ea52a57d (patch)
treee2b9dbb0a50bd6717b2e5d9bd9682c0841779f0b
parent481c9804aa7c9ad7d58c9448e8d5fdd32c2106cf (diff)
new option: DAEMON_SENDS_DIGESTS
-rw-r--r--config.php-dist4
-rw-r--r--update_daemon.php2
-rw-r--r--update_feeds.php2
3 files changed, 6 insertions, 2 deletions
diff --git a/config.php-dist b/config.php-dist
index 9f2f23854..7b800b46f 100644
--- a/config.php-dist
+++ b/config.php-dist
@@ -140,6 +140,10 @@
define('DIGEST_EMAIL_LIMIT', 10);
// The maximum amount of emails sent in one digest batch
+ define('DAEMON_SENDS_DIGESTS', true);
+ // If update daemon and update_feeds should send digests
+ // Disable if you prefer querying special URL (see wiki)
+
define('CONFIG_VERSION', 5);
// Expected config version. Please update this option in config.php
// if necessary (after migrating all new options from this file).
diff --git a/update_daemon.php b/update_daemon.php
index b15d43966..aae1c1ed6 100644
--- a/update_daemon.php
+++ b/update_daemon.php
@@ -148,7 +148,7 @@
}
}
- send_headlines_digests($link);
+ if (DAEMON_SENDS_DIGESTS) send_headlines_digests($link);
print "Sleeping for " . DAEMON_SLEEP_INTERVAL . " seconds...\n";
diff --git a/update_feeds.php b/update_feeds.php
index 279f4e1df..73422df0c 100644
--- a/update_feeds.php
+++ b/update_feeds.php
@@ -34,7 +34,7 @@
update_all_feeds($link, false, $user_id, true);
}
- send_headlines_digests($link);
+ if (DAEMON_SENDS_DIGESTS) send_headlines_digests($link);
db_close($link);