allow engineering units (e.g. 400M, 1G) as service class limits

This commit is contained in:
redmatrix
2016-04-28 21:02:27 -07:00
parent 30a6ae3daa
commit bb96f44861
9 changed files with 16 additions and 13 deletions

View File

@@ -615,7 +615,7 @@ class Photos extends \Zotlabs\Web\Controller {
);
$limit = service_class_fetch(\App::$data['channel']['channel_id'],'photo_upload_limit');
$limit = engr_units_to_bytes(service_class_fetch(\App::$data['channel']['channel_id'],'photo_upload_limit'));
if($limit !== false) {
$usage_message = sprintf( t("%1$.2f MB of %2$.2f MB photo storage used."), $r[0]['total'] / 1024000, $limit / 1024000 );
}