summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-12-18 23:01:49 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-12-18 23:01:49 +0100
commit49318b4d93b4dc5fbd58fa87b2efa8f1577fb7b7 (patch)
treee5e909e5482f77eb0965f174cf3c32108f0270dd /apps/files_external
parent5327b8043019ec8f0cfe19d70794978570bba4bc (diff)
parentd41082f4d625ae5aa053e6f038fa498517e45ef0 (diff)
downloadnextcloud-server-49318b4d93b4dc5fbd58fa87b2efa8f1577fb7b7.tar.gz
nextcloud-server-49318b4d93b4dc5fbd58fa87b2efa8f1577fb7b7.zip
Merge pull request #12896 from owncloud/drop-deprecated
first step to drop \OCP\Config:: in favour of IConfig
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/config.php2
-rw-r--r--apps/files_external/lib/sftp.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index f09b29a522b..823c0bcbfc1 100644
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -862,7 +862,7 @@ class OC_Mount_Config {
include('Crypt/AES.php');
}
$cipher = new Crypt_AES(CRYPT_AES_MODE_CBC);
- $cipher->setKey(\OCP\Config::getSystemValue('passwordsalt'));
+ $cipher->setKey(\OC::$server->getConfig()->getSystemValue('passwordsalt', null));
return $cipher;
}
diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php
index f0a6f145422..f6c56669734 100644
--- a/apps/files_external/lib/sftp.php
+++ b/apps/files_external/lib/sftp.php
@@ -112,7 +112,7 @@ class SFTP extends \OC\Files\Storage\Common {
try {
$storage_view = \OCP\Files::getStorage('files_external');
if ($storage_view) {
- return \OCP\Config::getSystemValue('datadirectory') .
+ return \OC::$server->getConfig()->getSystemValue('datadirectory') .
$storage_view->getAbsolutePath('') .
'ssh_hostKeys';
}