diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2018-10-17 13:12:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 13:12:57 +0200 |
commit | 2634ceb35b72eac94e6bf4c61640036392c5f97f (patch) | |
tree | 79fa0802cc631df70129090a47ea9ef1081f8591 /apps/files_sharing/lib | |
parent | 7c8b3c1056d2549734ec4bb9ed547468ca2c2331 (diff) | |
parent | 1bc388e5074055e67a961eef42ffa4953b9a3c98 (diff) | |
download | nextcloud-server-2634ceb35b72eac94e6bf4c61640036392c5f97f.tar.gz nextcloud-server-2634ceb35b72eac94e6bf4c61640036392c5f97f.zip |
Merge pull request #11862 from nextcloud/bugfix/ensure_cache_it_init
Double check for failed cache with a shared storage
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/SharedStorage.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index 34a21fcd637..f9c4a85fac6 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -378,10 +378,12 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto if (!$storage) { $storage = $this; } + $sourceRoot = $this->getSourceRootInfo(); if ($this->storage instanceof FailedStorage) { return new FailedCache(); } - $this->cache = new \OCA\Files_Sharing\Cache($storage, $this->getSourceRootInfo(), $this->superShare); + + $this->cache = new \OCA\Files_Sharing\Cache($storage, $sourceRoot, $this->superShare); return $this->cache; } |