summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/home.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-06-12 17:23:34 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-06-14 10:14:08 +0200
commit87e311b99628858ddb974cd35ae381a26b4bcdb5 (patch)
tree35b26ad637c6dbff04f35c188ccfd4cf0b5e7711 /lib/private/files/storage/home.php
parentdecb51aee64d024059cf9f66b88e802270f8da09 (diff)
downloadnextcloud-server-87e311b99628858ddb974cd35ae381a26b4bcdb5.tar.gz
nextcloud-server-87e311b99628858ddb974cd35ae381a26b4bcdb5.zip
Fix storage being passed to cache/watcher and scanner when using storage wrappers
Diffstat (limited to 'lib/private/files/storage/home.php')
-rw-r--r--lib/private/files/storage/home.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/files/storage/home.php b/lib/private/files/storage/home.php
index f66096f6d9c..214deede620 100644
--- a/lib/private/files/storage/home.php
+++ b/lib/private/files/storage/home.php
@@ -49,9 +49,12 @@ class Home extends Local {
/**
* @return \OC\Files\Cache\HomeCache
*/
- public function getCache($path = '') {
+ public function getCache($path = '', $storage = null) {
+ if (!$storage) {
+ $storage = $this;
+ }
if (!isset($this->cache)) {
- $this->cache = new \OC\Files\Cache\HomeCache($this);
+ $this->cache = new \OC\Files\Cache\HomeCache($storage);
}
return $this->cache;
}