]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Module/Media/Photo/Upload.php
authorMarekBenjamin <117765478+MarekBenjamin@users.noreply.github.com>
Wed, 30 Nov 2022 17:16:42 +0000 (18:16 +0100)
committerGitHub <noreply@github.com>
Wed, 30 Nov 2022 17:16:42 +0000 (18:16 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Module/Media/Photo/Upload.php

index 885aa86147310cdf4a2ba05d270fe1d45e284cd8..3a48fa3bc7e70252ad11ccf0b137451fb212f093 100644 (file)
@@ -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