]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_attach.php
Merge pull request #8178 from nupplaphil/task/mod_noscrape
[friendica.git] / mod / wall_attach.php
index 749d09dc06984f35688106038aa20b642f139e6c..bb5128137f5d6be5f5ce11741b94de337d90a20b 100644 (file)
@@ -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