aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Storage/Browser.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-06-14 20:40:25 -0700
committerzotlabs <mike@macgirvin.com>2018-06-14 20:40:25 -0700
commit7a144b90fb9174eb50e5d53d2f62d6d8d2671353 (patch)
tree243628112972012d9a926c396e5d9fa1cf5ce19c /Zotlabs/Storage/Browser.php
parent4a028b601518aafdb946c1a9c2b3fc01c4dbca19 (diff)
downloadvolse-hubzilla-7a144b90fb9174eb50e5d53d2f62d6d8d2671353.tar.gz
volse-hubzilla-7a144b90fb9174eb50e5d53d2f62d6d8d2671353.tar.bz2
volse-hubzilla-7a144b90fb9174eb50e5d53d2f62d6d8d2671353.zip
re-implement/refactor getQuotaInfo() on DAV storage
Diffstat (limited to 'Zotlabs/Storage/Browser.php')
-rw-r--r--Zotlabs/Storage/Browser.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Storage/Browser.php b/Zotlabs/Storage/Browser.php
index 67d934783..c2d70b854 100644
--- a/Zotlabs/Storage/Browser.php
+++ b/Zotlabs/Storage/Browser.php
@@ -333,6 +333,7 @@ class Browser extends DAV\Browser\Plugin {
$aclselect = null;
$lockstate = '';
+ $limit = 0;
if($this->auth->owner_id) {
$channel = channelx_by_n($this->auth->owner_id);
@@ -343,10 +344,11 @@ class Browser extends DAV\Browser\Plugin {
$aclselect = ((local_channel() == $this->auth->owner_id) ? populate_acl($channel_acl,false, \Zotlabs\Lib\PermissionDescription::fromGlobalPermission('view_storage')) : '');
}
+
+ // Storage and quota for the account (all channels of the owner of this directory)!
+ $limit = engr_units_to_bytes(service_class_fetch($this->auth->owner_id, 'attach_upload_limit'));
}
- // Storage and quota for the account (all channels of the owner of this directory)!
- $limit = engr_units_to_bytes(service_class_fetch($owner, 'attach_upload_limit'));
if((! $limit) && get_config('system','cloud_report_disksize')) {
$limit = engr_units_to_bytes(disk_free_space('store'));
}