create factory for dropzones

This commit is contained in:
Jakobus Schürz 2023-03-15 04:46:46 +01:00
commit ada11a2c67
4 changed files with 5 additions and 43 deletions

View file

@ -1141,7 +1141,7 @@ function photos_content(App $a)
'$qcomment' => $qcomment,
'$rand_num' => Crypto::randomDigits(12),
// Dropzone
'$max_imagesize' => floor(Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize')) / 1000000),
'$max_imagesize' => floor(\Friendica\Util\Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize')) / 1000000),
]);
}
}