Skip to content
Snippets Groups Projects
Commit 47157bcd authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #24400 from owncloud/cache_shareManager

Cache shareManager
parents c9601efe 3c2fee87
No related branches found
No related tags found
No related merge requests found
...@@ -64,9 +64,10 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node ...@@ -64,9 +64,10 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node
* @param \OC\Files\View $view * @param \OC\Files\View $view
* @param \OCP\Files\FileInfo $info * @param \OCP\Files\FileInfo $info
* @param ObjectTree|null $tree * @param ObjectTree|null $tree
* @param \OCP\Share\IManager $shareManager
*/ */
public function __construct($view, $info, $tree = null) { public function __construct($view, $info, $tree = null, $shareManager = null) {
parent::__construct($view, $info); parent::__construct($view, $info, $shareManager);
$this->tree = $tree; $this->tree = $tree;
} }
...@@ -202,9 +203,9 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node ...@@ -202,9 +203,9 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node
} }
if ($info['mimetype'] == 'httpd/unix-directory') { if ($info['mimetype'] == 'httpd/unix-directory') {
$node = new \OCA\DAV\Connector\Sabre\Directory($this->fileView, $info, $this->tree); $node = new \OCA\DAV\Connector\Sabre\Directory($this->fileView, $info, $this->tree, $this->shareManager);
} else { } else {
$node = new \OCA\DAV\Connector\Sabre\File($this->fileView, $info); $node = new \OCA\DAV\Connector\Sabre\File($this->fileView, $info, $this->shareManager);
} }
if ($this->tree) { if ($this->tree) {
$this->tree->cacheNode($node); $this->tree->cacheNode($node);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment