mirror of
https://github.com/friendica/friendica
synced 2025-04-22 17:10:11 +00:00
Removed redundant maximagesize = INF statements
This commit is contained in:
parent
00808326c2
commit
79235b6db1
4 changed files with 3 additions and 23 deletions
|
@ -55,10 +55,6 @@ class Index extends BaseSettings
|
|||
|
||||
$maximagesize = Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize', 0));
|
||||
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue