]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_attach.php
Issue-#3873
[friendica.git] / mod / wall_attach.php
index c9d13abef4df037b610828c9828e53a02f187dde..a060c253cf32628a29b7aaa02bd1d06760c2b471 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\Config;
 
 require_once('include/attach.php');
 require_once('include/datetime.php');
@@ -84,7 +85,7 @@ function wall_attach_post(App $a) {
        $filename = basename($_FILES['userfile']['name']);
        $filesize = intval($_FILES['userfile']['size']);
 
-       $maxfilesize = get_config('system','maxfilesize');
+       $maxfilesize = Config::get('system','maxfilesize');
 
        /* Found html code written in text field of form,
         * when trying to upload a file with filesize