X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffiler.php;h=47c4aa5e4cbc6fc05139174415d2f5485a97f7fb;hb=61a01141d7e897c30b5931b66675cbb09d6368b8;hp=c811ba6e2fc9d43cd48b91e96196d61d01780e07;hpb=685a677bc91c38dc2f59d3565d6c413bca84629d;p=friendica.git diff --git a/mod/filer.php b/mod/filer.php index c811ba6e2f..47c4aa5e4c 100644 --- a/mod/filer.php +++ b/mod/filer.php @@ -5,9 +5,9 @@ require_once('include/bbcode.php'); require_once('include/items.php'); -function filer_content(&$a) { +function filer_content(App $a) { - if(! local_user()) { + if (! local_user()) { killme(); } @@ -24,18 +24,13 @@ function filer_content(&$a) { $filetags = get_pconfig(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); - $o = replace_macros($tpl,$includes + array( + $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();