aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Helper.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-08-25 16:05:16 +0200
committerRobin Appelman <robin@icewind.nl>2020-08-25 16:05:16 +0200
commitc077c158755938592c26eb2e777986d74884051b (patch)
tree0948aa294ef603df4d88b72695f3f427f2156c3a /lib/private/legacy/OC_Helper.php
parent0934aee46bee13d5ac4d62eae6fe5250c25192fb (diff)
downloadnextcloud-server-c077c158755938592c26eb2e777986d74884051b.tar.gz
nextcloud-server-c077c158755938592c26eb2e777986d74884051b.zip
show better quota warning for group folders and external storage
instead of showing the generic 'Your storage is full' message, better explain that it's the group folder/external storage that is full Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/legacy/OC_Helper.php')
-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 61bdaeb88a9..77f0d922564 100644
--- a/lib/private/legacy/OC_Helper.php
+++ b/lib/private/legacy/OC_Helper.php
@@ -495,7 +495,8 @@ class OC_Helper {
$used = 0;
}
$quota = \OCP\Files\FileInfo::SPACE_UNLIMITED;
- $storage = $rootInfo->getStorage();
+ $mount = $rootInfo->getMountPoint();
+ $storage = $mount->getStorage();
$sourceStorage = $storage;
if ($storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage')) {
$includeExtStorage = false;
@@ -553,6 +554,7 @@ class OC_Helper {
'relative' => $relative,
'owner' => $ownerId,
'ownerDisplayName' => $ownerDisplayName,
+ 'mountType' => $mount->getMountType()
];
}