X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=bb5128137f5d6be5f5ce11741b94de337d90a20b;hb=4a3544582c570d43f7d274ddbae7ea835176cbd9;hp=f04698c5643641c110909406038cedad429098a4;hpb=d6efc901946c91cf26a4436c4b58b1636e4bc9c9;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php index f04698c564..bb5128137f 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -4,9 +4,9 @@ */ use Friendica\App; -use Friendica\Core\Config; use Friendica\Core\Session; use Friendica\Database\DBA; +use Friendica\DI; use Friendica\Model\Attach; use Friendica\Model\User; use Friendica\Util\Strings; @@ -77,7 +77,7 @@ function wall_attach_post(App $a) { $filename = basename($_FILES['userfile']['name']); $filesize = intval($_FILES['userfile']['size']); - $maxfilesize = Config::get('system','maxfilesize'); + $maxfilesize = DI::config()->get('system','maxfilesize'); /* Found html code written in text field of form, * when trying to upload a file with filesize