X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=c02a06c37521900ae62439c1476eda61ee8008cb;hb=f58d42e317cbf323fb2c802a0cb71a4799863008;hp=f04698c5643641c110909406038cedad429098a4;hpb=d6efc901946c91cf26a4436c4b58b1636e4bc9c9;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php index f04698c564..c02a06c375 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -1,12 +1,28 @@ . + * */ 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 +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