From 78693784361861916eb9dcf74174e6345b9eb677 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 25 Feb 2021 14:20:54 +0300 Subject: deal with feed update scheduling w/ new prefs --- classes/prefs.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'classes/prefs.php') diff --git a/classes/prefs.php b/classes/prefs.php index 29a4ed25d..d2f2cb4fb 100644 --- a/classes/prefs.php +++ b/classes/prefs.php @@ -147,6 +147,13 @@ class Prefs { return isset(self::_DEFAULTS[$pref_name]); } + static function get_default(string $pref_name) { + if (self::is_valid($pref_name)) + return self::_DEFAULTS[$pref_name][0]; + else + return null; + } + function __construct() { $this->pdo = Db::pdo(); -- cgit v1.2.3-54-g00ecf