From: MarekBenjamin <117765478+MarekBenjamin@users.noreply.github.com> Date: Wed, 30 Nov 2022 17:16:42 +0000 (+0100) Subject: Update src/Module/Media/Photo/Upload.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f9c0d5a14b475e4bbe2f81ff35bbe91b1eeecfb4;p=friendica.git Update src/Module/Media/Photo/Upload.php Co-authored-by: Hypolite Petovan --- 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