]> git.mxchange.org Git - friendica.git/blobdiff - mod/filer.php
Split the name in the hcard
[friendica.git] / mod / filer.php
index 02b8d68978f44897ae0b0d4716fec28a6f99a521..ea2c70d9bad6b4c98bf97ff355407c0fdd83861b 100644 (file)
@@ -1,13 +1,15 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\PConfig;
+
 require_once('include/security.php');
 require_once('include/bbcode.php');
 require_once('include/items.php');
 
-if(! function_exists('filer_content')) {
-function filer_content(&$a) {
+function filer_content(App $a) {
 
-       if(! local_user()) {
+       if (! local_user()) {
                killme();
        }
 
@@ -21,7 +23,7 @@ function filer_content(&$a) {
                file_tag_save_file(local_user(),$item_id,$term);
        } else {
                // return filer dialog
-               $filetags = get_pconfig(local_user(),'system','filetags');
+               $filetags = PConfig::get(local_user(),'system','filetags');
                $filetags = file_tag_file_to_list($filetags,'file');
                 $filetags = explode(",", $filetags);
 
@@ -35,4 +37,3 @@ function filer_content(&$a) {
        }
        killme();
 }
-}