mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-23 02:10:15 +00:00
Wrapped Strings::getBytesFromShorthand() around the last overseen DI::config()->get('system', 'maximagesize')
This commit is contained in:
parent
119a5ca8d8
commit
efb98c8457
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ class qqFileUploader
|
|||
// }
|
||||
|
||||
|
||||
$maximagesize = DI::config()->get('system', 'maximagesize');
|
||||
$maximagesize = Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize'));
|
||||
|
||||
if (($maximagesize) && ($size > $maximagesize)) {
|
||||
return ['error' => DI::l10n()->t('Image exceeds size limit of %s', Strings::formatBytes($maximagesize))];
|
||||
|
|
Loading…
Reference in a new issue