From bcdfedeb8a7836c25791d592e5ae4e0f5454c265 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 9 Jan 2024 11:45:40 +0300 Subject: * mark get_pref/set_pref wrappers as deprecated * add per-user preference for minimal score required for digest --- include/functions.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index 5096e9c65..b1aaf769b 100644 --- a/include/functions.php +++ b/include/functions.php @@ -38,6 +38,8 @@ /** * @return bool|int|null|string + * + * @deprecated by Prefs::get() */ function get_pref(string $pref_name, int $owner_uid = null) { return Prefs::get($pref_name, $owner_uid ? $owner_uid : $_SESSION["uid"], $_SESSION["profile"] ?? null); @@ -45,6 +47,8 @@ /** * @param bool|int|string $value + * + * @deprecated by Prefs::set() */ function set_pref(string $pref_name, $value, int $owner_uid = null, bool $strip_tags = true): bool { return Prefs::set($pref_name, $value, $owner_uid ? $owner_uid : $_SESSION["uid"], $_SESSION["profile"] ?? null, $strip_tags); -- cgit v1.2.3