summaryrefslogtreecommitdiff
path: root/classes/Digest.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-11-19 16:46:48 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-11-19 16:46:48 +0000
commit4bdd926a1c6238fe49cc3a8b26e7ce1539ebb764 (patch)
tree19deb331e4204003b11b88cc2f1e98cc2440b402 /classes/Digest.php
parent394d606fe977a331f733c62e5509469c2eb3ef31 (diff)
parent154abc61a0f81bee7757fc57e594f3f4bccc0fdf (diff)
Merge branch 'feature/replace-get_pref-and-set_pref' into 'master'
Eliminate use of deprecated 'get_pref()' and 'set_pref()'. See merge request tt-rss/tt-rss!75
Diffstat (limited to 'classes/Digest.php')
-rw-r--r--classes/Digest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/Digest.php b/classes/Digest.php
index 287f5f8fc..7e5e660b6 100644
--- a/classes/Digest.php
+++ b/classes/Digest.php
@@ -20,8 +20,8 @@ class Digest
while ($line = $res->fetch()) {
- if (get_pref(Prefs::DIGEST_ENABLE, $line['id'])) {
- $preferred_ts = strtotime(get_pref(Prefs::DIGEST_PREFERRED_TIME, $line['id']) ?? '');
+ if (Prefs::get(Prefs::DIGEST_ENABLE, $line['id'])) {
+ $preferred_ts = strtotime(Prefs::get(Prefs::DIGEST_PREFERRED_TIME, $line['id']) ?? '');
// try to send digests within 2 hours of preferred time
if ($preferred_ts && time() >= $preferred_ts &&
@@ -30,7 +30,7 @@ class Digest
Debug::log("Sending digest for UID:" . $line['id'] . " - " . $line["email"]);
- $do_catchup = get_pref(Prefs::DIGEST_CATCHUP, $line['id']);
+ $do_catchup = Prefs::get(Prefs::DIGEST_CATCHUP, $line['id']);
global $tz_offset;
@@ -156,7 +156,7 @@ class Digest
$updated = TimeHelper::make_local_datetime($line['last_updated'], false,
$user_id);
- if (get_pref(Prefs::ENABLE_FEED_CATS, $user_id)) {
+ if (Prefs::get(Prefs::ENABLE_FEED_CATS, $user_id)) {
$line['feed_title'] = $line['cat_title'] . " / " . $line['feed_title'];
}