From b130267e58522865a135e3b87b64ad2eaf34ec8f Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 24 Oct 2016 14:33:54 +0200 Subject: [PATCH] Import the used classes Signed-off-by: Joas Schilling --- apps/files_sharing/lib/SharedStorage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index 78a63ac5bb..8362a75913 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); }