diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-18 10:33:30 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-18 11:53:41 +0100 |
commit | 82bf99c0cfd764b25d1442cf199f219cd852ff69 (patch) | |
tree | e0b7f2a4552e19d7bb48c061ae3dc023d2efa580 /lib/private/user.php | |
parent | 6a7dbf3cf24125bfac5089a4fae0a305591410de (diff) | |
download | nextcloud-server-82bf99c0cfd764b25d1442cf199f219cd852ff69.tar.gz nextcloud-server-82bf99c0cfd764b25d1442cf199f219cd852ff69.zip |
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
Diffstat (limited to 'lib/private/user.php')
-rw-r--r-- | lib/private/user.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |