aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-05-20 01:57:16 +0200
committerFlorin Peter <github@florin-peter.de>2013-05-20 01:57:16 +0200
commit58a8d67a9b3c48567bcc40cc02444311c6773275 (patch)
tree83682bc368b13acd26ba535f490ae824a13398ed
parentb3b6738d599480fc9bf40a53313598c4766571fb (diff)
downloadnextcloud-server-58a8d67a9b3c48567bcc40cc02444311c6773275.tar.gz
nextcloud-server-58a8d67a9b3c48567bcc40cc02444311c6773275.zip
fix for webdav because initMounts() is triggered twice so we lost the root path
-rw-r--r--lib/files/filesystem.php4
1 files changed, 3 insertions, 1 deletions
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();
+ }
}
/**