fix order of mount commands

This commit is contained in:
Georg Ehrke 2013-02-22 14:19:29 +01:00
parent c0443a2f0d
commit f51d8c1cd9
1 changed files with 3 additions and 2 deletions

View File

@ -219,6 +219,9 @@ class Filesystem {
}
$parser = new \OC\ArrayParser();
$root = \OC_User::getHome($user);
self::mount('\OC\Files\Storage\Local', array('datadir' => $root), $user);
// Load system mount points
if (is_file(\OC::$SERVERROOT . '/config/mount.php') or is_file(\OC::$SERVERROOT . '/config/mount.json')) {
if(is_file(\OC::$SERVERROOT . '/config/mount.json')){
@ -259,8 +262,6 @@ class Filesystem {
}
}
// Load personal mount points
$root = \OC_User::getHome($user);
self::mount('\OC\Files\Storage\Local', array('datadir' => $root), $user);
if (is_file($root . '/mount.php') or is_file($root . '/mount.json')) {
if (is_file($root . '/mount.json')){
$mountConfig = json_decode(file_get_contents($root . '/mount.json'), true);