diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-04-25 16:11:48 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-04-25 16:11:48 +0200 |
commit | 31d7f4df2a8870c288ed73a3a6c501d4b15365ea (patch) | |
tree | ca640bd51d2baba7a796736019cc66f995984fe3 | |
parent | 1ee224d8cbaf66d38858d5ec59d5f083052deb4d (diff) | |
download | nextcloud-server-31d7f4df2a8870c288ed73a3a6c501d4b15365ea.tar.gz nextcloud-server-31d7f4df2a8870c288ed73a3a6c501d4b15365ea.zip |
Make sure the filesystem is initialized when searching for mounts
-rw-r--r-- | lib/files/mount.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/files/mount.php b/lib/files/mount.php index 59c98e9dcc8..0030d0ee7a6 100644 --- a/lib/files/mount.php +++ b/lib/files/mount.php @@ -136,6 +136,7 @@ class Mount { * @return Mount */ public static function find($path) { + \OC_Util::setupFS(); $path = self::formatPath($path); if (isset(self::$mounts[$path])) { return self::$mounts[$path]; @@ -163,6 +164,7 @@ class Mount { * @return Mount[] */ public static function findIn($path) { + \OC_Util::setupFS(); $path = self::formatPath($path); $result = array(); $pathLength = strlen($path); @@ -186,6 +188,7 @@ class Mount { * @return Mount[] */ public static function findByStorageId($id) { + \OC_Util::setupFS(); if (strlen($id) > 64) { $id = md5($id); } |