fix error when browsing the dav root
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
6acae94a02
commit
9d8936c5bf
1 changed files with 3 additions and 4 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue