fix error when browsing the dav root

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2017-05-08 14:34:36 +02:00
parent 6acae94a02
commit 9d8936c5bf
No known key found for this signature in database
GPG key ID: CBCA68FBAEBF98C9

View file

@ -343,6 +343,9 @@ class FilesPlugin extends ServerPlugin {
$propFind->handle(self::SIZE_PROPERTYNAME, function() use ($node) {
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) {
@ -383,10 +386,6 @@ class FilesPlugin extends ServerPlugin {
return $node->getSize();
});
}
$propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function () use ($node) {
return $node->getFileInfo()->getMountPoint()->getMountType();
});
}
/**