Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-05-08 19:04:13 +0300
committerGitHub <noreply@github.com>2017-05-08 19:04:13 +0300
commit36d0c3da69e8381fc9e34e4621a833ee0871cd49 (patch)
tree3c0d6b579c694c2b9284d5b83f97253e5b166835 /apps
parent9bc77f2914d4bc7cb7ba39cbf6969db7627a4338 (diff)
parent9d8936c5bf327cc32e05dad81880a310c3fdd19b (diff)
Merge pull request #4733 from nextcloud/fix-browser-dav-root
fix error when browsing the dav root
Diffstat (limited to 'apps')
-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();
- });
}
/**