]> source.dussan.org Git - nextcloud-server.git/commitdiff
Revert "fix for webdav and wrong reference for findByStorageId"
authorFlorin Peter <github@florin-peter.de>
Sun, 19 May 2013 23:47:35 +0000 (01:47 +0200)
committerFlorin Peter <github@florin-peter.de>
Sun, 19 May 2013 23:47:35 +0000 (01:47 +0200)
This reverts commit 079f918d5ca0d242e77717aaeac82bcf011dc745.

lib/files/cache/backgroundwatcher.php
lib/files/filesystem.php

index b5770d0582b201d271faede48a1a64b2b25cc714..7549745e7d757339f0753759832001c106809e0f 100644 (file)
@@ -30,7 +30,7 @@ class BackgroundWatcher {
                        return;
                }
                list($storageId, $internalPath) = $cacheItem;
-               $mounts = Mount\Manager::findByStorageId($storageId);
+               $mounts = Mount::findByStorageId($storageId);
 
                if (count($mounts) === 0) {
                        //if the storage we need isn't mounted on default, try to find a user that has access to the storage
index d0cac9dc1d3f07bc2577cfeccaa34bc6547caf33..d60d430d77cb76da949ad7d8e712170d93d453f0 100644 (file)
@@ -236,9 +236,7 @@ class Filesystem {
        }
 
        static public function initMounts(){
-               if(!self::$mounts) {
-                       self::$mounts = new Mount\Manager();
-               }
+               self::$mounts = new Mount\Manager();
        }
 
        /**