From f9c0d5a14b475e4bbe2f81ff35bbe91b1eeecfb4 Mon Sep 17 00:00:00 2001 From: MarekBenjamin <117765478+MarekBenjamin@users.noreply.github.com> Date: Wed, 30 Nov 2022 18:16:42 +0100 Subject: [PATCH] Update src/Module/Media/Photo/Upload.php Co-authored-by: Hypolite Petovan --- src/Module/Media/Photo/Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Media/Photo/Upload.php b/src/Module/Media/Photo/Upload.php index 885aa86147..3a48fa3bc7 100644 --- a/src/Module/Media/Photo/Upload.php +++ b/src/Module/Media/Photo/Upload.php @@ -169,7 +169,7 @@ class Upload extends \Friendica\BaseModule $width = $image->getWidth(); $height = $image->getHeight(); - $maximagesize = Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize')); + $maximagesize = Strings::getBytesFromShorthand($this->config->get('system', 'maximagesize')); if ($maximagesize && $filesize > $maximagesize) { // Scale down to multiples of 640 until the maximum size isn't exceeded anymore