aboutsummaryrefslogtreecommitdiffstats
path: root/mod/filerm.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-04 06:42:56 -0700
committerfriendica <info@friendica.com>2012-05-04 06:42:56 -0700
commit10754ced3e51f796102005b9661b747c06fd4e0b (patch)
tree6f9615581e7e4fa8c7fc1f7155a0efd90e4357b9 /mod/filerm.php
parent9ecd128e5e2aba527138c1a4afa2ff17caebe896 (diff)
downloadvolse-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.php8
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']);