diff options
| author | wn_ <invalid@email.com> | 2024-11-17 22:14:08 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2024-11-18 21:59:45 +0000 |
| commit | 154abc61a0f81bee7757fc57e594f3f4bccc0fdf (patch) | |
| tree | 19deb331e4204003b11b88cc2f1e98cc2440b402 /classes/Digest.php | |
| parent | 394d606fe977a331f733c62e5509469c2eb3ef31 (diff) | |
Eliminate use of deprecated 'get_pref()' and 'set_pref()'.
Diffstat (limited to 'classes/Digest.php')
| -rw-r--r-- | classes/Digest.php | 8 |
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']; } |