make use of OC_User::getHome in files_external app

remotes/origin/stable45
Georg Ehrke 14 years ago
parent 7901fc33a8
commit 745f279fbc
  1. 4
      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';
}

Loading…
Cancel
Save