diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-01-13 07:09:01 -0800 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-01-13 07:09:01 -0800 |
commit | 5e04b7f2841a815ddec19d65f3ff7166a333e6fd (patch) | |
tree | 922ec08dd8367f4277a1706e56b067a2a79ba155 /apps/files_external/lib/config.php | |
parent | 82c840b3e641bc0c488356d823a2e6f9d4e56af6 (diff) | |
parent | c06844c374c145b2f05ae0800678f68acc9ae2e3 (diff) | |
download | nextcloud-server-5e04b7f2841a815ddec19d65f3ff7166a333e6fd.tar.gz nextcloud-server-5e04b7f2841a815ddec19d65f3ff7166a333e6fd.zip |
Merge pull request #6422 from ccerrillo/fixing-6301-external-mount-webdav-blank-files
Fixing Issue #6301 on master branch
Diffstat (limited to 'apps/files_external/lib/config.php')
-rwxr-xr-x | apps/files_external/lib/config.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 2abf7acb91e..01d588b3721 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -392,8 +392,7 @@ class OC_Mount_Config { * @return array */ public static function getCertificates() { - $view = \OCP\Files::getStorage('files_external'); - $path=\OCP\Config::getSystemValue('datadirectory').$view->getAbsolutePath("").'uploads/'; + $path=OC_User::getHome(OC_User::getUser()) . '/files_external/uploads/'; \OCP\Util::writeLog('files_external', 'checking path '.$path, \OCP\Util::INFO); if ( ! is_dir($path)) { //path might not exist (e.g. non-standard OC_User::getHome() value) @@ -415,8 +414,7 @@ class OC_Mount_Config { * creates certificate bundle */ public static function createCertificateBundle() { - $view = \OCP\Files::getStorage("files_external"); - $path = \OCP\Config::getSystemValue('datadirectory').$view->getAbsolutePath(""); + $path=OC_User::getHome(OC_User::getUser()) . '/files_external'; $certs = OC_Mount_Config::getCertificates(); $fh_certs = fopen($path."/rootcerts.crt", 'w'); |