]> git.mxchange.org Git - friendica.git/commitdiff
Show image size limit in Frio as "usagemessage" for photo_upload
authorMarek Bachmann <marek.bachmann@comtec.eecs.uni-kassel.de>
Fri, 25 Nov 2022 18:44:09 +0000 (19:44 +0100)
committerMarek Bachmann <marek.bachmann@comtec.eecs.uni-kassel.de>
Fri, 25 Nov 2022 18:44:09 +0000 (19:44 +0100)
mod/photos.php

index e5a24d22a930481b0cbbcffcfe9197785712d3c1..eff5daceb44f35faeeae68ec61f086d7b3558589 100644 (file)
@@ -914,7 +914,9 @@ function photos_content(App $a)
                        '$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');