make use of OC_User::getHome in files_external app
This commit is contained in:
parent
7901fc33a8
commit
745f279fbc
|
@ -186,7 +186,7 @@ class OC_Mount_Config {
|
||||||
*/
|
*/
|
||||||
private static function readData($isPersonal) {
|
private static function readData($isPersonal) {
|
||||||
if ($isPersonal) {
|
if ($isPersonal) {
|
||||||
$file = OC::$SERVERROOT.'/data/'.OCP\User::getUser().'/mount.php';
|
$file = OC_User::getHome(OCP\User::getUser()).'/mount.php';
|
||||||
} else {
|
} else {
|
||||||
$file = OC::$SERVERROOT.'/config/mount.php';
|
$file = OC::$SERVERROOT.'/config/mount.php';
|
||||||
}
|
}
|
||||||
|
@ -206,7 +206,7 @@ class OC_Mount_Config {
|
||||||
*/
|
*/
|
||||||
private static function writeData($isPersonal, $data) {
|
private static function writeData($isPersonal, $data) {
|
||||||
if ($isPersonal) {
|
if ($isPersonal) {
|
||||||
$file = OC::$SERVERROOT.'/data/'.OCP\User::getUser().'/mount.php';
|
$file = OC_User::getHome(OCP\User::getUser()).'/mount.php';
|
||||||
} else {
|
} else {
|
||||||
$file = OC::$SERVERROOT.'/config/mount.php';
|
$file = OC::$SERVERROOT.'/config/mount.php';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue