diff options
author | Robin Appelman <robin@icewind.nl> | 2020-09-17 17:19:41 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-11-12 22:26:11 +0300 |
commit | 141eaab9c4babb883f75fae3b96519dd6a4362a2 (patch) | |
tree | fdf8f2dd09e579d832922c49dfc1f2a59fb33a8c /lib | |
parent | 3e3de886e4cdf3dd99b8c1766ea18adacd795745 (diff) |
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')
-rw-r--r-- | lib/private/legacy/helper.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/legacy/helper.php b/lib/private/legacy/helper.php index 0f7b2d1b3af..387999a96da 100644 --- a/lib/private/legacy/helper.php +++ b/lib/private/legacy/helper.php @@ -544,6 +544,7 @@ class OC_Helper { if($owner) { $ownerDisplayName = $owner->getDisplayName(); } + [,,,$mountPoint] = explode('/', $mount->getMountPoint(), 4); return [ 'free' => $free, @@ -553,7 +554,8 @@ class OC_Helper { 'relative' => $relative, 'owner' => $ownerId, 'ownerDisplayName' => $ownerDisplayName, - 'mountType' => $mount->getMountType() + 'mountType' => $mount->getMountType(), + 'mountPoint' => trim($mountPoint, '/'), ]; } |