diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-09-04 15:51:19 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-09-04 15:56:00 +0200 |
commit | 745f279fbc613cd90f2bf6e2c9432b9534c133de (patch) | |
tree | c09498f3386ab8acb48988c82245466bdde494a0 /apps | |
parent | 7901fc33a867d5bdb121ce29d1d09d549d84b173 (diff) | |
download | nextcloud-server-745f279fbc613cd90f2bf6e2c9432b9534c133de.tar.gz nextcloud-server-745f279fbc613cd90f2bf6e2c9432b9534c133de.zip |
make use of OC_User::getHome in files_external app
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/files_external/lib/config.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index f1bc16e2537..063b149027b 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -186,7 +186,7 @@ class OC_Mount_Config { */
private static function readData($isPersonal) {
if ($isPersonal) {
- $file = OC::$SERVERROOT.'/data/'.OCP\User::getUser().'/mount.php';
+ $file = OC_User::getHome(OCP\User::getUser()).'/mount.php';
} else {
$file = OC::$SERVERROOT.'/config/mount.php';
}
@@ -206,7 +206,7 @@ class OC_Mount_Config { */
private static function writeData($isPersonal, $data) {
if ($isPersonal) {
- $file = OC::$SERVERROOT.'/data/'.OCP\User::getUser().'/mount.php';
+ $file = OC_User::getHome(OCP\User::getUser()).'/mount.php';
} else {
$file = OC::$SERVERROOT.'/config/mount.php';
}
|