]> git.mxchange.org Git - friendica.git/blobdiff - mod/filer.php
Bump DB version
[friendica.git] / mod / filer.php
old mode 100755 (executable)
new mode 100644 (file)
index 3cd1bfe..47c4aa5
@@ -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();
        }
 
@@ -22,13 +22,15 @@ function filer_content(&$a) {
        } else {
                // return filer dialog
                $filetags = get_pconfig(local_user(),'system','filetags');
-               $filetags = explode("][", trim($filetags,"[]"));
+               $filetags = file_tag_file_to_list($filetags,'file');
+                $filetags = explode(",", $filetags);
+
                $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();