summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-05-15 15:02:01 -0700
committerThomas Müller <thomas.mueller@tmit.eu>2013-05-15 15:02:01 -0700
commit0b2bfe6186db38c1daad78de606bea2d628b305c (patch)
treea5023fafaa48c59db5fb11cbe5a09cbd0e20ff68
parentdfddaf8fbf5ff515f26ff462c7ba6166b3d0ed18 (diff)
parent5dcec346e54d63b41906bd2b77cb92d77aa52780 (diff)
downloadnextcloud-server-0b2bfe6186db38c1daad78de606bea2d628b305c.tar.gz
nextcloud-server-0b2bfe6186db38c1daad78de606bea2d628b305c.zip
Merge pull request #3371 from owncloud/fix-3353
Fix finding mount in background watcher, fixes #3353
-rw-r--r--lib/files/cache/backgroundwatcher.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/files/cache/backgroundwatcher.php b/lib/files/cache/backgroundwatcher.php
index 7549745e7d7..8933101577d 100644
--- a/lib/files/cache/backgroundwatcher.php
+++ b/lib/files/cache/backgroundwatcher.php
@@ -30,7 +30,7 @@ class BackgroundWatcher {
return;
}
list($storageId, $internalPath) = $cacheItem;
- $mounts = Mount::findByStorageId($storageId);
+ $mounts = Filesystem::getMountByStorageId($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
@@ -40,7 +40,7 @@ class BackgroundWatcher {
return;
}
Filesystem::initMountPoints($users[0]);
- $mounts = Mount::findByStorageId($storageId);
+ $mounts = Filesystem::getMountByStorageId($storageId);
if (count($mounts) === 0) {
return;
}