diff options
Diffstat (limited to 'app/Models/Context.php')
| -rw-r--r-- | app/Models/Context.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Models/Context.php b/app/Models/Context.php index 9a4e0192e..27b1c4309 100644 --- a/app/Models/Context.php +++ b/app/Models/Context.php @@ -55,10 +55,12 @@ final class FreshRSS_Context { public static bool $isCli = false; /** + * @access private * @deprecated Will be made `private`; use `FreshRSS_Context::systemConf()` instead. */ public static ?FreshRSS_SystemConfiguration $system_conf = null; /** + * @access private * @deprecated Will be made `private`; use `FreshRSS_Context::userConf()` instead. */ public static ?FreshRSS_UserConfiguration $user_conf = null; @@ -128,10 +130,8 @@ final class FreshRSS_Context { FreshRSS_Context::$search = new FreshRSS_BooleanSearch(''); //Legacy - $oldEntries = FreshRSS_Context::$user_conf->param('old_entries', 0); - $oldEntries = is_numeric($oldEntries) ? (int)$oldEntries : 0; - $keepMin = FreshRSS_Context::$user_conf->param('keep_history_default', -5); - $keepMin = is_numeric($keepMin) ? (int)$keepMin : -5; + $oldEntries = FreshRSS_Context::$user_conf->attributeInt('old_entries') ?? 0; + $keepMin = FreshRSS_Context::$user_conf->attributeInt('keep_history_default') ?? -5; if ($oldEntries > 0 || $keepMin > -5) { //Freshrss < 1.15 $archiving = FreshRSS_Context::$user_conf->archiving; $archiving['keep_max'] = false; |
