more work on filer, comment level and file tag removal
This commit is contained in:
parent
de017d1ed7
commit
4972d7ef6e
7 changed files with 57 additions and 23 deletions
21
mod/filerm.php
Normal file
21
mod/filerm.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
function filerm_content(&$a) {
|
||||
|
||||
if(! local_user()) {
|
||||
killme();
|
||||
}
|
||||
|
||||
$term = notags(trim($_GET['term']));
|
||||
$item_id = (($a->argc > 1) ? notags(trim($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);
|
||||
|
||||
if(x($_SESSION,'return_url'))
|
||||
goaway($a->get_baseurl() . '/' . $_SESSION['return_url']);
|
||||
|
||||
killme();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue