diff options
author | friendica <info@friendica.com> | 2012-05-04 06:42:56 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-05-04 06:42:56 -0700 |
commit | 10754ced3e51f796102005b9661b747c06fd4e0b (patch) | |
tree | 6f9615581e7e4fa8c7fc1f7155a0efd90e4357b9 /mod/filerm.php | |
parent | 9ecd128e5e2aba527138c1a4afa2ff17caebe896 (diff) | |
download | volse-hubzilla-10754ced3e51f796102005b9661b747c06fd4e0b.tar.gz volse-hubzilla-10754ced3e51f796102005b9661b747c06fd4e0b.tar.bz2 volse-hubzilla-10754ced3e51f796102005b9661b747c06fd4e0b.zip |
category removal
Diffstat (limited to 'mod/filerm.php')
-rw-r--r-- | mod/filerm.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/filerm.php b/mod/filerm.php index c520fec7a..d2b57d447 100644 --- a/mod/filerm.php +++ b/mod/filerm.php @@ -7,12 +7,18 @@ function filerm_content(&$a) { } $term = unxmlify(trim($_GET['term'])); + $cat = unxmlify(trim($_GET['cat'])); + + $category = (($cat) ? true : false); + if($category) + $term = $cat; + $item_id = (($a->argc > 1) ? intval($a->argv[1]) : 0); logger('filerm: tag ' . $term . ' item ' . $item_id); if($item_id && strlen($term)) - file_tag_unsave_file(local_user(),$item_id,$term); + file_tag_unsave_file(local_user(),$item_id,$term, $category); if(x($_SESSION,'return_url')) goaway($a->get_baseurl() . '/' . $_SESSION['return_url']); |