summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-06-05 18:21:41 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-06-05 18:21:41 +0200
commit62ae39208a0deed71d4cd373c6822946fd489586 (patch)
tree219d97cf14af0afb43939aa403a5863838cbc794 /apps/files/lib
parent9899e10a0411d161db1b4e1302690ac74c1ae72c (diff)
downloadnextcloud-server-62ae39208a0deed71d4cd373c6822946fd489586.tar.gz
nextcloud-server-62ae39208a0deed71d4cd373c6822946fd489586.zip
Add owner to the storage stats to enable better notifications
* getstoragestats.php returns now the owner and it's display name * show proper storage stats notifications for shared folders
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/helper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php
index e966e60d00a..6bfdc0a095c 100644
--- a/apps/files/lib/helper.php
+++ b/apps/files/lib/helper.php
@@ -52,7 +52,9 @@ class Helper {
'uploadMaxFilesize' => $maxUploadFileSize,
'maxHumanFilesize' => $maxHumanFileSize,
'freeSpace' => $storageInfo['free'],
- 'usedSpacePercent' => (int)$storageInfo['relative']
+ 'usedSpacePercent' => (int)$storageInfo['relative'],
+ 'owner' => $storageInfo['owner'],
+ 'ownerDisplayName' => $storageInfo['ownerDisplayName'],
];
}