aboutsummaryrefslogtreecommitdiff
path: root/app/Utils/feverUtil.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Utils/feverUtil.php')
-rw-r--r--app/Utils/feverUtil.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/Utils/feverUtil.php b/app/Utils/feverUtil.php
index 3c2b8bd2e..571c2bc00 100644
--- a/app/Utils/feverUtil.php
+++ b/app/Utils/feverUtil.php
@@ -29,10 +29,7 @@ class FreshRSS_fever_Util {
* @throws FreshRSS_Context_Exception
*/
public static function getKeyPath(string $feverKey): string {
- if (FreshRSS_Context::$system_conf === null) {
- throw new FreshRSS_Context_Exception('System configuration not initialised!');
- }
- $salt = sha1(FreshRSS_Context::$system_conf->salt);
+ $salt = sha1(FreshRSS_Context::systemConf()->salt);
return self::FEVER_PATH . '/.key-' . $salt . '-' . $feverKey . '.txt';
}