X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=bb5128137f5d6be5f5ce11741b94de337d90a20b;hb=977248f5105a2b3f127d0aa752ce27214605fbf0;hp=749d09dc06984f35688106038aa20b642f139e6c;hpb=1bc4b2e0788ac11d3b377013b410f2250fff68aa;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php index 749d09dc06..bb5128137f 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -4,7 +4,6 @@ */ use Friendica\App; -use Friendica\Core\Config; use Friendica\Core\Session; use Friendica\Database\DBA; use Friendica\DI; @@ -78,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