From 82bf99c0cfd764b25d1442cf199f219cd852ff69 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 18 Dec 2015 10:33:30 +0100 Subject: Get rid of legacy OC_Config We were still using the lecagy class OC_Config all over the place. Which was a wrapper around the new class OC\Config --- lib/private/user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private/user.php') diff --git a/lib/private/user.php b/lib/private/user.php index f806aa07251..4e395a3f7a3 100644 --- a/lib/private/user.php +++ b/lib/private/user.php @@ -130,7 +130,7 @@ class OC_User { */ public static function setupBackends() { OC_App::loadApps(array('prelogin')); - $backends = OC_Config::getValue('user_backends', array()); + $backends = \OC::$config->getValue('user_backends', array()); foreach ($backends as $i => $config) { $class = $config['class']; $arguments = $config['arguments']; @@ -498,7 +498,7 @@ class OC_User { if ($user) { return $user->getHome(); } else { - return OC_Config::getValue('datadirectory', OC::$SERVERROOT . '/data') . '/' . $uid; + return \OC::$config->getValue('datadirectory', OC::$SERVERROOT . '/data') . '/' . $uid; } } -- cgit v1.2.3