summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-17 11:12:37 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-17 11:12:37 +0100
commitd41082f4d625ae5aa053e6f038fa498517e45ef0 (patch)
tree5d8dd7c9e8699daa4a7dbf57fa2fe57bc444a83f /apps/files_external
parent5b9c453071fe900529cd26b88fbc681d8b153b43 (diff)
downloadnextcloud-server-d41082f4d625ae5aa053e6f038fa498517e45ef0.tar.gz
nextcloud-server-d41082f4d625ae5aa053e6f038fa498517e45ef0.zip
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 5742b8f47e2..128613915ac 100644
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -831,7 +831,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';
}