summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-01-19 19:49:41 -0600
committerMorris Jobke <hey@morrisjobke.de>2017-01-19 19:49:41 -0600
commita4ad8af6e3f0247db6f74dfcddc144e91f61fe84 (patch)
treeff957103206534edb0b29756b69f0dfaeadbf538 /apps/files_external/lib
parent48a3f2a8a2d6217c9938c3719fb752633de7c082 (diff)
downloadnextcloud-server-a4ad8af6e3f0247db6f74dfcddc144e91f61fe84.tar.gz
nextcloud-server-a4ad8af6e3f0247db6f74dfcddc144e91f61fe84.zip
Add proper default value for datadir
* better safe than sorry * fixes #3091 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r--apps/files_external/lib/Lib/Storage/SFTP.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php
index 9d20742fcb0..1d9affa8d68 100644
--- a/apps/files_external/lib/Lib/Storage/SFTP.php
+++ b/apps/files_external/lib/Lib/Storage/SFTP.php
@@ -207,7 +207,7 @@ class SFTP extends \OC\Files\Storage\Common {
try {
$storage_view = \OCP\Files::getStorage('files_external');
if ($storage_view) {
- return \OC::$server->getConfig()->getSystemValue('datadirectory') .
+ return \OC::$server->getConfig()->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') .
$storage_view->getAbsolutePath('') .
'ssh_hostKeys';
}