aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-09-17 16:19:41 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2020-10-04 11:02:32 +0200
commit0dfdf3ee9978fdfd119acaa98b8747026d60599b (patch)
tree6a75d920b0cfb7c0d79da58cc7b6b74e1858fa75 /lib/private/legacy
parent12da69d79d3546348356d4b71d010e206634c582 (diff)
downloadnextcloud-server-0dfdf3ee9978fdfd119acaa98b8747026d60599b.tar.gz
nextcloud-server-0dfdf3ee9978fdfd119acaa98b8747026d60599b.zip
add mount point to quota warning message
makes it more clear to the user what the quota applies to Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/OC_Helper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php
index 77f0d922564..8a38ca3b0d2 100644
--- a/lib/private/legacy/OC_Helper.php
+++ b/lib/private/legacy/OC_Helper.php
@@ -545,6 +545,7 @@ class OC_Helper {
if ($owner) {
$ownerDisplayName = $owner->getDisplayName();
}
+ [,,,$mountPoint] = explode('/', $mount->getMountPoint(), 4);
return [
'free' => $free,
@@ -554,7 +555,8 @@ class OC_Helper {
'relative' => $relative,
'owner' => $ownerId,
'ownerDisplayName' => $ownerDisplayName,
- 'mountType' => $mount->getMountType()
+ 'mountType' => $mount->getMountType(),
+ 'mountPoint' => trim($mountPoint, '/'),
];
}