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

fix error when browsing the dav root
This commit is contained in:
Robin Appelman 2017-05-08 18:04:13 +02:00 committed by GitHub
commit 36d0c3da69
1 changed files with 3 additions and 4 deletions

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();
});
}
/**