diff options
Diffstat (limited to 'lib/public/config.php')
-rw-r--r-- | lib/public/config.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/config.php b/lib/public/config.php index 05a3f651b33..fc4df3f7567 100644 --- a/lib/public/config.php +++ b/lib/public/config.php @@ -131,7 +131,7 @@ class Config { * not exist the default value will be returned */ public static function getUserValue( $user, $app, $key, $default = null ) { - return \OC_Preferences::getValue( $user, $app, $key, $default ); + return \OC::$server->getConfig()->getUserValue( $user, $app, $key, $default ); } /** @@ -148,7 +148,7 @@ class Config { */ public static function setUserValue( $user, $app, $key, $value ) { try { - \OC_Preferences::setValue( $user, $app, $key, $value ); + \OC::$server->getConfig()->setUserValue( $user, $app, $key, $value ); } catch (\Exception $e) { return false; } |