diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-27 17:05:19 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-08 22:29:42 +0100 |
commit | b01c59b2249d9624c9ff8df5d8db22039b845204 (patch) | |
tree | 7fad9e106ba7327998ed88a9b55fe3ee13d4f9aa /lib/public/config.php | |
parent | d6da627eb44444618e5cd9ee29ef2cc4eacb0993 (diff) | |
download | nextcloud-server-b01c59b2249d9624c9ff8df5d8db22039b845204.tar.gz nextcloud-server-b01c59b2249d9624c9ff8df5d8db22039b845204.zip |
use old methods and redirect in deprecated methods
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; } |