summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-07-22 14:34:59 +0200
committerRobin Appelman <robin@icewind.nl>2016-07-22 14:34:59 +0200
commitd499f68fd72bb6839023aa91fb2028587a62c496 (patch)
treefd8db56b60a8d3df7d078a69b751695b7576fa4d /lib/private/Files
parent194c385c7a3200ca939f4ee85c3230cdb869f98e (diff)
downloadnextcloud-server-d499f68fd72bb6839023aa91fb2028587a62c496.tar.gz
nextcloud-server-d499f68fd72bb6839023aa91fb2028587a62c496.zip
Fix storage id with storage jail
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Storage/Wrapper/Jail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Jail.php b/lib/private/Files/Storage/Wrapper/Jail.php
index 80c75523748..5b9085799b9 100644
--- a/lib/private/Files/Storage/Wrapper/Jail.php
+++ b/lib/private/Files/Storage/Wrapper/Jail.php
@@ -377,7 +377,7 @@ class Jail extends Wrapper {
*/
public function getCache($path = '', $storage = null) {
if (!$storage) {
- $storage = $this;
+ $storage = $this->storage;
}
$sourceCache = $this->storage->getCache($this->getSourcePath($path), $storage);
return new CacheJail($sourceCache, $this->rootPath);