]> git.wh0rd.org - tt-rss.git/commitdiff
add global option DIGEST_ENABLE
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 22 Aug 2006 10:12:19 +0000 (11:12 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 22 Aug 2006 10:12:19 +0000 (11:12 +0100)
config.php-dist
functions.php

index 930e513fab72582144e6722c2a37036f6716a146..a50a51c4db2e6ccaf92aea2ec8c524bdc1f7d7de 100644 (file)
        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
 
index 52e997aedb0981377b3b2401f15aa5a4db3840bb..2b4b3bcd197262d372d50db411924296b328710b 100644 (file)
 
        function send_headlines_digests($link, $limit = 100) {
 
+               if (!DIGEST_ENABLE) return false;
+
                $user_limit = DIGEST_EMAIL_LIMIT;
                $days = DIGEST_DAYS_BACK;