fix for webdav and wrong reference for findByStorageId

This commit is contained in:
Florin Peter 2013-05-19 22:30:03 +02:00
parent bdd2127f19
commit 079f918d5c
2 changed files with 4 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class BackgroundWatcher {
return; return;
} }
list($storageId, $internalPath) = $cacheItem; list($storageId, $internalPath) = $cacheItem;
$mounts = Mount::findByStorageId($storageId); $mounts = Mount\Manager::findByStorageId($storageId);
if (count($mounts) === 0) { 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 //if the storage we need isn't mounted on default, try to find a user that has access to the storage

View File

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