]> git.mxchange.org Git - friendica.git/commitdiff
correct some filer dialog weirdness caused by introduction of categories
authorMichael Johnston <michaelgeorgejohnston@gmail.com>
Thu, 5 Apr 2012 03:08:16 +0000 (23:08 -0400)
committerMichael Johnston <michaelgeorgejohnston@gmail.com>
Thu, 5 Apr 2012 03:08:16 +0000 (23:08 -0400)
mod/filer.php

index 3cd1bfe22ff7a67306ef8a67b73e7687bf0b382d..c0cca9e6df072e5a9495e0777db58a08592591b4 100755 (executable)
@@ -22,7 +22,8 @@ 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 -')),