]> git.mxchange.org Git - friendica.git/blobdiff - mod/filer.php
Bugfix: dba::num_rows hadn't checked the object variable
[friendica.git] / mod / filer.php
index 7b0fd59d587001290b22a654df015a2103a39e9e..6259879de2ae9d6d31ad8ac722b9a4747e77ca88 100644 (file)
@@ -1,13 +1,14 @@
 <?php
 
+use Friendica\App;
+
 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();
        }
 
@@ -24,18 +25,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);
 
+               $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();