aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Storage/Browser.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-28 21:02:27 -0700
committerredmatrix <git@macgirvin.com>2016-04-28 21:02:27 -0700
commitbb96f44861c66e9eb334e18e4b4b659685433008 (patch)
tree1f1d7b789829502c61a8a3defbecf37bc4a5dba9 /Zotlabs/Storage/Browser.php
parent30a6ae3daa42da8d1d9560fcc4c706b3e41c4d80 (diff)
downloadvolse-hubzilla-bb96f44861c66e9eb334e18e4b4b659685433008.tar.gz
volse-hubzilla-bb96f44861c66e9eb334e18e4b4b659685433008.tar.bz2
volse-hubzilla-bb96f44861c66e9eb334e18e4b4b659685433008.zip
allow engineering units (e.g. 400M, 1G) as service class limits
Diffstat (limited to 'Zotlabs/Storage/Browser.php')
-rw-r--r--Zotlabs/Storage/Browser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Storage/Browser.php b/Zotlabs/Storage/Browser.php
index 720940953..c75ebe41f 100644
--- a/Zotlabs/Storage/Browser.php
+++ b/Zotlabs/Storage/Browser.php
@@ -273,7 +273,7 @@ class Browser extends DAV\Browser\Plugin {
return;
// Storage and quota for the account (all channels of the owner of this directory)!
- $limit = service_class_fetch($owner, 'attach_upload_limit');
+ $limit = engr_units_to_bytes(service_class_fetch($owner, 'attach_upload_limit'));
$r = q("SELECT SUM(filesize) AS total FROM attach WHERE aid = %d",
intval($this->auth->channel_account_id)
);