From: Florin Peter Date: Sun, 19 May 2013 23:57:16 +0000 (+0200) Subject: fix for webdav because initMounts() is triggered twice so we lost the root path X-Git-Tag: v6.0.0alpha2~743^2~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=58a8d67a9b3c48567bcc40cc02444311c6773275;p=nextcloud-server.git fix for webdav because initMounts() is triggered twice so we lost the root path --- diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index d60d430d77c..d0cac9dc1d3 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -236,7 +236,9 @@ class Filesystem { } static public function initMounts(){ - self::$mounts = new Mount\Manager(); + if(!self::$mounts) { + self::$mounts = new Mount\Manager(); + } } /**