- $filetags = get_pconfig(local_user(),'system','filetags');
- $filetags = file_tag_file_to_list($filetags,'file');
- $filetags = explode(",", $filetags);
+ $filetags = PConfig::get(local_user(), 'system', 'filetags');
+ $filetags = FileTag::fileToList($filetags, 'file');
+ $filetags = explode(",", $filetags);
+
+ $tpl = Renderer::getMarkupTemplate("filer_dialog.tpl");
+ $o = Renderer::replaceMacros($tpl, [
+ '$field' => ['term', L10n::t("Save to Folder:"), '', '', $filetags, L10n::t('- select -')],
+ '$submit' => L10n::t('Save'),
+ ]);