From 04e87cce987902056b578cc69c95956911cd771c Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 23 Dec 2018 19:49:10 +0100 Subject: [PATCH] forgot to add a few statics... :p Signed-off-by: Michael Kaufmann --- lib/Froxlor/Settings.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Froxlor/Settings.php b/lib/Froxlor/Settings.php index a020f2a2..211b1fde 100644 --- a/lib/Froxlor/Settings.php +++ b/lib/Froxlor/Settings.php @@ -99,7 +99,7 @@ class Settings * @param string $varname * @param string $value */ - private function _storeSetting($group = null, $varname = null, $value = null) + private static function _storeSetting($group = null, $varname = null, $value = null) { $upd_data = array( 'group' => $group, @@ -117,7 +117,7 @@ class Settings * * @return mixed */ - public function Get($setting = null) + public static function Get($setting = null) { self::init(); $sstr = explode(".", $setting); @@ -142,7 +142,7 @@ class Settings * * @return boolean true, if the list contains $entry */ - public function IsInList($setting = null, $entry = null) + public static function IsInList($setting = null, $entry = null) { self::init(); $s = self::Get($setting); @@ -163,7 +163,7 @@ class Settings * * @return bool */ - public function Set($setting = null, $value = null, $instant_save = true) + public static function Set($setting = null, $value = null, $instant_save = true) { self::init(); // check whether the setting exists @@ -203,7 +203,7 @@ class Settings * * @return boolean */ - public function AddNew($setting = null, $value = null) + public static function AddNew($setting = null, $value = null) { self::init(); // first check if it doesn't exist