]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix getting root entry when not provided by the share provider
authorRobin Appelman <robin@icewind.nl>
Thu, 17 Nov 2016 15:31:31 +0000 (16:31 +0100)
committerRobin Appelman <robin@icewind.nl>
Thu, 17 Nov 2016 17:48:39 +0000 (18:48 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_sharing/lib/SharedStorage.php

index 86209f6f7445085f26ac224e8d7affa49d85abca..5b4aa061800afb75b8f299fd08335067d80ebdf0 100644 (file)
@@ -94,7 +94,7 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
        private function getSourceRootInfo() {
                if (is_null($this->sourceRootInfo)) {
                        if (is_null($this->superShare->getNodeCacheEntry())) {
-                               $this->sourceRootInfo = $this->storage->getCache()->get($this->rootPath);
+                               $this->sourceRootInfo = $this->getWrapperStorage()->getCache()->get($this->rootPath);
                        } else {
                                $this->sourceRootInfo = $this->superShare->getNodeCacheEntry();
                        }