Skip to content
Snippets Groups Projects
Commit 5c76fffc authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

Merge pull request #1854 from owncloud/fix_mount_order

Fix order of mount commands in lib/files/filesystem.php
parents c0443a2f f51d8c1c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment