]> git.mxchange.org Git - friendica.git/blobdiff - mod/filer.php
Split the name in the hcard
[friendica.git] / mod / filer.php
index 7b0fd59d587001290b22a654df015a2103a39e9e..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');
 
+function filer_content(App $a) {
 
-function filer_content(&$a) {
-
-       if(! local_user()) {
+       if (! local_user()) {
                killme();
        }
 
@@ -21,21 +23,16 @@ 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);
-               $tpl = get_markup_template("filer_dialog.tpl");
-
-               $includes = array(
-                       '$field_combobox' => 'field_combobox.tpl',
-               );
-               $includes = set_template_includes($a->theme['template_engine'], $includes);
 
+               $tpl = get_markup_template("filer_dialog.tpl");
                $o = replace_macros($tpl, array(
                        '$field' => array('term', t("Save to Folder:"), '', '', $filetags, t('- select -')),
                        '$submit' => t('Save'),
                ));
-               
+
                echo $o;
        }
        killme();