3 function filerm_content(&$a) {
9 $term = unxmlify(trim($_GET['term']));
10 $cat = unxmlify(trim($_GET['cat']));
12 $category = (($cat) ? true : false);
16 $item_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
18 logger('filerm: tag ' . $term . ' item ' . $item_id);
20 if($item_id && strlen($term))
21 file_tag_unsave_file(local_user(),$item_id,$term, $category);
23 if(x($_SESSION,'return_url'))
24 goaway($a->get_baseurl() . '/' . $_SESSION['return_url']);