diff options
author | redmatrix <git@macgirvin.com> | 2016-04-28 21:02:27 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-28 21:02:27 -0700 |
commit | bb96f44861c66e9eb334e18e4b4b659685433008 (patch) | |
tree | 1f1d7b789829502c61a8a3defbecf37bc4a5dba9 /Zotlabs/Module/Item.php | |
parent | 30a6ae3daa42da8d1d9560fcc4c706b3e41c4d80 (diff) | |
download | volse-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/Module/Item.php')
-rw-r--r-- | Zotlabs/Module/Item.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 74fbeed67..93570fdec 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -1243,14 +1243,14 @@ class Item extends \Zotlabs\Web\Controller { } if (!$iswebpage) { - $max = service_class_fetch($channel_id,'total_items'); + $max = engr_units_to_bytes(service_class_fetch($channel_id,'total_items')); if(! service_class_allows($channel_id,'total_items',$r[0]['total'])) { $result['message'] .= upgrade_message() . sprintf( t('You have reached your limit of %1$.0f top level posts.'),$max); return $result; } } else { - $max = service_class_fetch($channel_id,'total_pages'); + $max = engr_units_to_bytes(service_class_fetch($channel_id,'total_pages')); if(! service_class_allows($channel_id,'total_pages',$r[0]['total'])) { $result['message'] .= upgrade_message() . sprintf( t('You have reached your limit of %1$.0f webpages.'),$max); return $result; |