X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=c02a06c37521900ae62439c1476eda61ee8008cb;hb=f58d42e317cbf323fb2c802a0cb71a4799863008;hp=749d09dc06984f35688106038aa20b642f139e6c;hpb=174129af946b912f842cffc474b7ee5119f76247;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php index 749d09dc06..c02a06c375 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -1,10 +1,25 @@ . + * */ use Friendica\App; -use Friendica\Core\Config; use Friendica\Core\Session; use Friendica\Database\DBA; use Friendica\DI; @@ -78,7 +93,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