]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_attach.php
Add parameter for "toArray()" method
[friendica.git] / mod / wall_attach.php
index a8f704cd995f780d584121a34758ad13f83e6acc..bb5128137f5d6be5f5ce11741b94de337d90a20b 100644 (file)
@@ -4,10 +4,9 @@
  */
 
 use Friendica\App;
-use Friendica\Core\Config;
-use Friendica\Core\L10n;
 use Friendica\Core\Session;
 use Friendica\Database\DBA;
+use Friendica\DI;
 use Friendica\Model\Attach;
 use Friendica\Model\User;
 use Friendica\Util\Strings;
@@ -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