aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Helper.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-04-26 14:53:11 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-04-28 09:38:21 +0200
commitab9a36e872173b34be2e678de0c452885e3b48d8 (patch)
tree76e34c578bfdde6ab46164f9e4227e4fe0cc351e /apps/files/lib/Helper.php
parent9da697b11af2928a1470dcedc7ebf77e4a5f0730 (diff)
downloadnextcloud-server-ab9a36e872173b34be2e678de0c452885e3b48d8.tar.gz
nextcloud-server-ab9a36e872173b34be2e678de0c452885e3b48d8.zip
allow apps to set custom mount types
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files/lib/Helper.php')
-rw-r--r--apps/files/lib/Helper.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/files/lib/Helper.php b/apps/files/lib/Helper.php
index c3d80957913..d2cebce5ddc 100644
--- a/apps/files/lib/Helper.php
+++ b/apps/files/lib/Helper.php
@@ -157,12 +157,9 @@ class Helper {
$entry['isShareMountPoint'] = $i['is_share_mount_point'];
}
$mountType = null;
- if ($i->isShared()) {
- $mountType = 'shared';
- } else if ($i->isMounted()) {
- $mountType = 'external';
- }
- if ($mountType !== null) {
+ $mount = $i->getMountPoint();
+ $mountType = $mount->getMountType();
+ if ($mountType !== '') {
if ($i->getInternalPath() === '') {
$mountType .= '-root';
}