mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 16:14:26 +02:00
use round instead of floor to make imagesize <1M possible
This commit is contained in:
parent
1a1a1246b6
commit
512e5900e6
5 changed files with 7 additions and 7 deletions
|
@ -186,7 +186,7 @@ class Edit extends BaseModule
|
|||
'$compose_link_title' => $this->t('Open Compose page'),
|
||||
|
||||
// Dropzone
|
||||
'$max_imagesize' => floor(Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize')) / 1000000),
|
||||
'$max_imagesize' => round(Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize')) / 1000000,1),
|
||||
]);
|
||||
return $output;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue