Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
707 B

10 years ago
10 years ago
10 years ago
10 years ago
  1. <?php
  2. function filerm_content(App &$a) {
  3. if (! local_user()) {
  4. killme();
  5. }
  6. $term = unxmlify(trim($_GET['term']));
  7. $cat = unxmlify(trim($_GET['cat']));
  8. $category = (($cat) ? true : false);
  9. if ($category) {
  10. $term = $cat;
  11. }
  12. $item_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
  13. logger('filerm: tag ' . $term . ' item ' . $item_id);
  14. if ($item_id && strlen($term)) {
  15. file_tag_unsave_file(local_user(),$item_id,$term, $category);
  16. }
  17. <<<<<<< upstream/develop
  18. if (x($_SESSION,'return_url')) {
  19. goaway(App::get_baseurl() . '/' . $_SESSION['return_url']);
  20. }
  21. =======
  22. if(x($_SESSION,'return_url'))
  23. goaway(App::get_baseurl() . '/' . $_SESSION['return_url']);
  24. >>>>>>> HEAD~33
  25. killme();
  26. }