kopia lustrzana https://github.com/friendica/friendica
Better formatting
rodzic
f4d49e561c
commit
f88722bf7f
|
@ -914,12 +914,8 @@ function photos_content(App $a)
|
|||
'$submit' => DI::l10n()->t('Submit'),
|
||||
]);
|
||||
|
||||
/* This block determines which setting actually limits upload size of images:
|
||||
* limit of Friendica ('maximagesize') or upload_max_filesize
|
||||
* and outputs the lower one.
|
||||
*/
|
||||
// Determine which setting actually limits upload size of images: limit of Friendica ('maximagesize') or upload_max_filesize
|
||||
$maximagesize_Mbytes = 0;
|
||||
{
|
||||
// Get the relevant size limits for uploads. Abbreviated var names: MaxImageSize -> mis; upload_max_filesize -> umf
|
||||
$mis_bytes = DI::config()->get('system', 'maximagesize');
|
||||
$umf_bytes = Strings::getBytesFromShorthand(get_cfg_var('upload_max_filesize'));
|
||||
|
@ -929,7 +925,7 @@ function photos_content(App $a)
|
|||
($umf_bytes < $mis_bytes) ?
|
||||
($maximagesize_Mbytes = ($umf_bytes / (10 ** 6))) : ($maximagesize_Mbytes = ($mis_bytes / (10 ** 6)));
|
||||
}
|
||||
}
|
||||
|
||||
$usage_message = DI::l10n()->t('The maximum accepted image size is %.3g MB', $maximagesize_Mbytes);
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate('photos_upload.tpl');
|
||||
|
|
Ładowanie…
Reference in New Issue