From: Andrew Dolgov Date: Tue, 22 Aug 2006 10:12:19 +0000 (+0100) Subject: add global option DIGEST_ENABLE X-Git-Tag: 1.2.3~31 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1ddba2752795ec35a82645af5a1f2bcd59ada54a;p=tt-rss.git add global option DIGEST_ENABLE --- diff --git a/config.php-dist b/config.php-dist index 930e513f..a50a51c4 100644 --- a/config.php-dist +++ b/config.php-dist @@ -134,6 +134,9 @@ define('USE_CURL_FOR_ICONS', false); // 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'); // Hostname for email digest signature diff --git a/functions.php b/functions.php index 52e997ae..2b4b3bcd 100644 --- a/functions.php +++ b/functions.php @@ -2380,6 +2380,8 @@ function send_headlines_digests($link, $limit = 100) { + if (!DIGEST_ENABLE) return false; + $user_limit = DIGEST_EMAIL_LIMIT; $days = DIGEST_DAYS_BACK;