diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-10-24 21:12:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-24 21:12:24 +0200 |
commit | 4d01f23978549c2a33e9fdfdc3b9308cc9dc1078 (patch) | |
tree | 8729f99dac04a2324897a81db3919ace8b55218e | |
parent | 0bfd530b24dc56006df29e8300738409ae31afb0 (diff) | |
parent | b130267e58522865a135e3b87b64ad2eaf34ec8f (diff) | |
download | nextcloud-server-4d01f23978549c2a33e9fdfdc3b9308cc9dc1078.tar.gz nextcloud-server-4d01f23978549c2a33e9fdfdc3b9308cc9dc1078.zip |
Merge pull request #1879 from nextcloud/fix-missing-import
Import the used classes
-rw-r--r-- | apps/files_sharing/lib/SharedStorage.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index 78a63ac5bbc..8362a759135 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -33,6 +33,7 @@ namespace OCA\Files_Sharing; use OC\Files\Filesystem; use OC\Files\Cache\FailedCache; +use OC\Files\Storage\FailedStorage; use OCP\Constants; use OCP\Files\Cache\ICacheEntry; use OCP\Files\NotFoundException; @@ -170,6 +171,8 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto if (!$this->file_exists($path)) { return false; } + /** @var IStorage $storage */ + /** @var string $internalPath */ list($storage, $internalPath) = $this->resolvePath($path); return $storage->isReadable($internalPath); } |