From baecfc4080214f37708f8c233c0f9b33df7571fd Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 2 Dec 2015 14:49:40 +0100 Subject: Reduce OC_Config usage in lib/ * replaced by proper public interfaces --- lib/private/files/filesystem.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/private/files/filesystem.php') diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php index 0f7508b8f26..9f243c15a4c 100644 --- a/lib/private/files/filesystem.php +++ b/lib/private/files/filesystem.php @@ -386,7 +386,7 @@ class Filesystem { throw new \OC\User\NoUserException('Backends provided no user object for ' . $user); } - $homeStorage = \OC_Config::getValue('objectstore'); + $homeStorage = \OC::$server->getConfig()->getSystemValue('objectstore'); if (!empty($homeStorage)) { // sanity checks if (empty($homeStorage['class'])) { @@ -458,7 +458,7 @@ class Filesystem { * @param string $user user name */ private static function mountCacheDir($user) { - $cacheBaseDir = \OC_Config::getValue('cache_path', ''); + $cacheBaseDir = \OC::$server->getConfig()->getSystemValue('cache_path', ''); if ($cacheBaseDir !== '') { $cacheDir = rtrim($cacheBaseDir, '/') . '/' . $user; if (!file_exists($cacheDir)) { @@ -603,7 +603,7 @@ class Filesystem { static public function isFileBlacklisted($filename) { $filename = self::normalizePath($filename); - $blacklist = \OC_Config::getValue('blacklisted_files', array('.htaccess')); + $blacklist = \OC::$server->getConfig()->getSystemValue('blacklisted_files', array('.htaccess')); $filename = strtolower(basename($filename)); return in_array($filename, $blacklist); } -- cgit v1.2.3