diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-02-24 10:35:24 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-24 10:35:24 +0100 |
commit | 539ea0882bb8e0ee02d7adaf72109dcbda608d36 (patch) | |
tree | f77a9de69671f7f866b526c051f897cae000fde5 /apps/files_external/lib | |
parent | f11658698d48e0fdd2065466651c4c86c22a80f2 (diff) | |
download | nextcloud-server-539ea0882bb8e0ee02d7adaf72109dcbda608d36.tar.gz nextcloud-server-539ea0882bb8e0ee02d7adaf72109dcbda608d36.zip |
Fixed mount config path
Diffstat (limited to 'apps/files_external/lib')
-rwxr-xr-x | apps/files_external/lib/config.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index ed9a0126dd1..1a17e0139d9 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -353,8 +353,8 @@ class OC_Mount_Config { $jsonFile = OC_User::getHome(OCP\User::getUser()).'/mount.json'; } else { $phpFile = OC::$SERVERROOT.'/config/mount.php'; - $datadir = \OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data/"); - $jsonFile = \OC_Config::getValue("mount_file", $datadir . "/mount.json"); + $datadir = \OC_Config::getValue('datadirectory', \OC::$SERVERROOT . '/data/'); + $jsonFile = \OC_Config::getValue('mount_file', $datadir . '/mount.json'); } if (is_file($jsonFile)) { $mountPoints = json_decode(file_get_contents($jsonFile), true); @@ -380,7 +380,8 @@ class OC_Mount_Config { if ($isPersonal) { $file = OC_User::getHome(OCP\User::getUser()).'/mount.json'; } else { - $file = \OC_Config::getValue("mount_file", \OC::$SERVERROOT . "/data/mount.json"); + $datadir = \OC_Config::getValue('datadirectory', \OC::$SERVERROOT . '/data/'); + $file = \OC_Config::getValue('mount_file', $datadir . '/mount.json'); } $content = json_encode($data); @file_put_contents($file, $content); |