Removed redundant maximagesize = INF statements

This commit is contained in:
Marek Bachmann 2022-11-30 05:17:48 +01:00
commit 79235b6db1
4 changed files with 3 additions and 23 deletions

View file

@ -656,10 +656,6 @@ function photos_post(App $a)
$maximagesize = Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize'));
if ($maximagesize == 0) {
$maximagesize = INF;
}
if ($maximagesize && ($filesize > $maximagesize)) {
DI::sysmsg()->addNotice(DI::l10n()->t('Image exceeds size limit of %s', Strings::formatBytes($maximagesize)));
@unlink($src);