diff options
author | Robin Appelman <robin@icewind.nl> | 2017-05-08 18:04:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-08 18:04:13 +0200 |
commit | 36d0c3da69e8381fc9e34e4621a833ee0871cd49 (patch) | |
tree | 3c0d6b579c694c2b9284d5b83f97253e5b166835 | |
parent | 9bc77f2914d4bc7cb7ba39cbf6969db7627a4338 (diff) | |
parent | 9d8936c5bf327cc32e05dad81880a310c3fdd19b (diff) | |
download | nextcloud-server-36d0c3da69e8381fc9e34e4621a833ee0871cd49.tar.gz nextcloud-server-36d0c3da69e8381fc9e34e4621a833ee0871cd49.zip |
Merge pull request #4733 from nextcloud/fix-browser-dav-root
fix error when browsing the dav root
-rw-r--r-- | apps/dav/lib/Connector/Sabre/FilesPlugin.php | 7 |
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(); - }); } /** |