]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make sure the filesystem is initialized when searching for mounts
authorRobin Appelman <icewind@owncloud.com>
Thu, 25 Apr 2013 14:11:48 +0000 (16:11 +0200)
committerRobin Appelman <icewind@owncloud.com>
Thu, 25 Apr 2013 14:11:48 +0000 (16:11 +0200)
lib/files/mount.php

index 59c98e9dcc8e651ca8b874408f6bd338a25bac27..0030d0ee7a637fc3607103d3ca719b58d669450c 100644 (file)
@@ -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);
                }