Skip to content
Snippets Groups Projects
Commit 36d0c3da authored by Robin Appelman's avatar Robin Appelman Committed by GitHub
Browse files

Merge pull request #4733 from nextcloud/fix-browser-dav-root

fix error when browsing the dav root
parents 9bc77f29 9d8936c5
No related branches found
No related tags found
No related merge requests found
...@@ -343,6 +343,9 @@ class FilesPlugin extends ServerPlugin { ...@@ -343,6 +343,9 @@ class FilesPlugin extends ServerPlugin {
$propFind->handle(self::SIZE_PROPERTYNAME, function() use ($node) { $propFind->handle(self::SIZE_PROPERTYNAME, function() use ($node) {
return $node->getSize(); return $node->getSize();
}); });
$propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function () use ($node) {
return $node->getFileInfo()->getMountPoint()->getMountType();
});
} }
if ($node instanceof \OCA\DAV\Connector\Sabre\Node) { if ($node instanceof \OCA\DAV\Connector\Sabre\Node) {
...@@ -383,10 +386,6 @@ class FilesPlugin extends ServerPlugin { ...@@ -383,10 +386,6 @@ class FilesPlugin extends ServerPlugin {
return $node->getSize(); return $node->getSize();
}); });
} }
$propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function () use ($node) {
return $node->getFileInfo()->getMountPoint()->getMountType();
});
} }
/** /**
......
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