Show image size limit in Frio as "usagemessage" for photo_upload
This commit is contained in:
parent
01558d6dda
commit
d402fe364e
1 changed files with 3 additions and 1 deletions
|
@ -914,7 +914,9 @@ function photos_content(App $a)
|
||||||
'$submit' => DI::l10n()->t('Submit'),
|
'$submit' => DI::l10n()->t('Submit'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$usage_message = '';
|
$maximagesize_bytes = DI::config()->get('system', 'maximagesize');
|
||||||
|
$maximagesize_Mbytes = ($maximagesize_bytes / (10**6));
|
||||||
|
$usage_message = DI::l10n()->t('The maximum accepted image size is: ') . $maximagesize_Mbytes . ' MB';
|
||||||
|
|
||||||
$tpl = Renderer::getMarkupTemplate('photos_upload.tpl');
|
$tpl = Renderer::getMarkupTemplate('photos_upload.tpl');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue