]> source.dussan.org Git - nextcloud-server.git/commitdiff
Import the used classes 1879/head
authorJoas Schilling <coding@schilljs.com>
Mon, 24 Oct 2016 12:33:54 +0000 (14:33 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 24 Oct 2016 12:33:54 +0000 (14:33 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/files_sharing/lib/SharedStorage.php

index 78a63ac5bbc2879761670b8ebfece146bdab5853..8362a7591352bcfe5196e801e6366570ffb66c94 100644 (file)
@@ -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);
        }