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