Wrapped Strings::getBytesFromShorthand() around the last overseen DI::config()->get('system', 'maximagesize')

pull/1325/head
Marek Bachmann 2 months ago
parent 119a5ca8d8
commit efb98c8457

@ -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…
Cancel
Save