summaryrefslogtreecommitdiffstats
path: root/lib/private/files/filesystem.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-12-02 14:49:40 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-12-02 14:49:40 +0100
commitbaecfc4080214f37708f8c233c0f9b33df7571fd (patch)
tree89f2fef954606433ada44284b623dc8a5d066749 /lib/private/files/filesystem.php
parent8d218bf3ef842d76c2b97a175b28e13054497952 (diff)
downloadnextcloud-server-baecfc4080214f37708f8c233c0f9b33df7571fd.tar.gz
nextcloud-server-baecfc4080214f37708f8c233c0f9b33df7571fd.zip
Reduce OC_Config usage in lib/
* replaced by proper public interfaces
Diffstat (limited to 'lib/private/files/filesystem.php')
-rw-r--r--lib/private/files/filesystem.php6
1 files changed, 3 insertions, 3 deletions
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);
}