From b01c59b2249d9624c9ff8df5d8db22039b845204 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 27 Nov 2014 17:05:19 +0100 Subject: use old methods and redirect in deprecated methods --- lib/public/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/public') 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; } -- cgit v1.2.3