aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-05-08 14:34:36 +0200
committerRobin Appelman <robin@icewind.nl>2017-05-08 14:34:36 +0200
commit9d8936c5bf327cc32e05dad81880a310c3fdd19b (patch)
tree576228229eb55a17c5453b5a8b33cb3fa9b3d161 /apps/dav
parent6acae94a021a6e961a00fe2c33e5468461e65893 (diff)
downloadnextcloud-server-9d8936c5bf327cc32e05dad81880a310c3fdd19b.tar.gz
nextcloud-server-9d8936c5bf327cc32e05dad81880a310c3fdd19b.zip
fix error when browsing the dav root
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesPlugin.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/dav/lib/Connector/Sabre/FilesPlugin.php b/apps/dav/lib/Connector/Sabre/FilesPlugin.php
index 4c426dd1052..30eeaaacf63 100644
--- a/apps/dav/lib/Connector/Sabre/FilesPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/FilesPlugin.php
@@ -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();
- });
}
/**