diff options
author | Andrew Dolgov <[email protected]> | 2024-01-09 11:45:40 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2024-01-09 11:45:40 +0300 |
commit | bcdfedeb8a7836c25791d592e5ae4e0f5454c265 (patch) | |
tree | 050bac479a46cac782ac152f7bb280723717ae21 /include/functions.php | |
parent | ea6cdcccb09f6e254f5de532010b8deea837c339 (diff) |
* mark get_pref/set_pref wrappers as deprecated
* add per-user preference for minimal score required for digest
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 4 |
1 files changed, 4 insertions, 0 deletions
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); |