add global option DIGEST_ENABLE

This commit is contained in:
Andrew Dolgov 2006-08-22 11:12:19 +01:00
parent a283b8d13e
commit 1ddba27527
2 changed files with 5 additions and 0 deletions

View file

@ -134,6 +134,9 @@
define('USE_CURL_FOR_ICONS', false); define('USE_CURL_FOR_ICONS', false);
// Fetch favicons using CURL, useful if your PHP has disabled remote fopen() // Fetch favicons using CURL, useful if your PHP has disabled remote fopen()
define('DIGEST_ENABLE', true);
// Global option to enable daily digests
define('DIGEST_HOSTNAME', 'some.ttrss.host.dom'); define('DIGEST_HOSTNAME', 'some.ttrss.host.dom');
// Hostname for email digest signature // Hostname for email digest signature

View file

@ -2380,6 +2380,8 @@
function send_headlines_digests($link, $limit = 100) { function send_headlines_digests($link, $limit = 100) {
if (!DIGEST_ENABLE) return false;
$user_limit = DIGEST_EMAIL_LIMIT; $user_limit = DIGEST_EMAIL_LIMIT;
$days = DIGEST_DAYS_BACK; $days = DIGEST_DAYS_BACK;