X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=94aac2be9f1e42f25cefe74e472ea48f2e75371b;hb=724a61390f2e567fcbb7afb597f2927b909e911c;hp=f04698c5643641c110909406038cedad429098a4;hpb=d6efc901946c91cf26a4436c4b58b1636e4bc9c9;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php index f04698c564..94aac2be9f 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 @@ -90,7 +106,7 @@ function wall_attach_post(App $a) { if ($r_json) { echo json_encode(['error' => $msg]); } else { - notice($msg . EOL); + notice($msg); } @unlink($src); exit();