diff options
author | Robin Appelman <robin@icewind.nl> | 2017-03-20 18:31:34 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-03-20 18:31:34 +0100 |
commit | 0c1b7fdcb59a260f75cc20ad2f124826dfc566b8 (patch) | |
tree | c97888f4a5ae8df2fc88d3f1ddd78b9621a93098 /apps | |
parent | f2e981e269052db73765be3eb1c97aa69f868d5e (diff) | |
download | nextcloud-server-0c1b7fdcb59a260f75cc20ad2f124826dfc566b8.tar.gz nextcloud-server-0c1b7fdcb59a260f75cc20ad2f124826dfc566b8.zip |
return failed cache if the shared storage failed to setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/SharedStorage.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index 77bbb2f227b..2cfba16c686 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -31,6 +31,7 @@ namespace OCA\Files_Sharing; +use OC\Files\Cache\FailedCache; use OC\Files\Filesystem; use OC\Files\Storage\Wrapper\PermissionsMask; use OC\Files\Storage\FailedStorage; @@ -353,6 +354,9 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto if (!$storage) { $storage = $this; } + if ($this->storage instanceof FailedStorage) { + return new FailedCache(); + } $this->cache = new \OCA\Files_Sharing\Cache($storage, $this->getSourceRootInfo(), $this->superShare); return $this->cache; } |