aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-28 03:19:42 -0700
committerfriendica <info@friendica.com>2012-03-28 03:19:42 -0700
commitb58dc431481d6afb7af9f571932d1d215a079d12 (patch)
treeb46e39298070af0b986ee1abd70ff698cc165670 /mod
parentb18086097e6ffd6f8b456ac27af1de16ad2977a1 (diff)
parentc32ee4d226dec11d881dd5c68eda073e87780c12 (diff)
downloadvolse-hubzilla-b58dc431481d6afb7af9f571932d1d215a079d12.tar.gz
volse-hubzilla-b58dc431481d6afb7af9f571932d1d215a079d12.tar.bz2
volse-hubzilla-b58dc431481d6afb7af9f571932d1d215a079d12.zip
Merge branch 'pull'
Diffstat (limited to 'mod')
-rwxr-xr-xmod/filer.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/mod/filer.php b/mod/filer.php
index a9e213536..82537848b 100755
--- a/mod/filer.php
+++ b/mod/filer.php
@@ -16,8 +16,20 @@ function filer_content(&$a) {
logger('filer: tag ' . $term . ' item ' . $item_id);
- if($item_id && strlen($term))
+ if($item_id && strlen($term)){
+ // file item
file_tag_save_file(local_user(),$item_id,$term);
-
+ } else {
+ // return filer dialog
+ $filetags = get_pconfig(local_user(),'system','filetags');
+ $filetags = explode("][", trim($filetags,"[]"));
+ $tpl = get_markup_template("filer_dialog.tpl");
+ $o = replace_macros($tpl, array(
+ '$field' => array('term', t("File as:"), '', '', $filetags, t('- select -')),
+ '$submit' => t('Save'),
+ ));
+
+ echo $o;
+ }
killme();
}