]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix for webdav because initMounts() is triggered twice so we lost the root path
authorFlorin Peter <github@florin-peter.de>
Sun, 19 May 2013 23:57:16 +0000 (01:57 +0200)
committerFlorin Peter <github@florin-peter.de>
Sun, 19 May 2013 23:57:16 +0000 (01:57 +0200)
lib/files/filesystem.php

index d60d430d77cb76da949ad7d8e712170d93d453f0..d0cac9dc1d3f07bc2577cfeccaa34bc6547caf33 100644 (file)
@@ -236,7 +236,9 @@ class Filesystem {
        }
 
        static public function initMounts(){
-               self::$mounts = new Mount\Manager();
+               if(!self::$mounts) {
+                       self::$mounts = new Mount\Manager();
+               }
        }
 
        /**