fix for webdav and wrong reference for findByStorageId
This commit is contained in:
parent
bdd2127f19
commit
079f918d5c
|
@ -30,7 +30,7 @@ class BackgroundWatcher {
|
|||
return;
|
||||
}
|
||||
list($storageId, $internalPath) = $cacheItem;
|
||||
$mounts = Mount::findByStorageId($storageId);
|
||||
$mounts = Mount\Manager::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
|
||||
|
|
|
@ -236,7 +236,9 @@ class Filesystem {
|
|||
}
|
||||
|
||||
static public function initMounts(){
|
||||
self::$mounts = new Mount\Manager();
|
||||
if(!self::$mounts) {
|
||||
self::$mounts = new Mount\Manager();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue