diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:56:18 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:56:18 -0300 |
commit | a7be81c3f81c807d43ed32965ee7ac11ebe71895 (patch) | |
tree | 71751c05eb80ae6e348790f3e46652c9dfe0be7d /mod/livestream/actions/delete.php | |
parent | f3beeb45f9f192aee6ede0c9b6f0fa8b8d82a9ef (diff) | |
parent | 059badecbc0be895c6165430e5096a9ab653027e (diff) | |
download | elgg-a7be81c3f81c807d43ed32965ee7ac11ebe71895.tar.gz elgg-a7be81c3f81c807d43ed32965ee7ac11ebe71895.tar.bz2 |
Merge commit '059badecbc0be895c6165430e5096a9ab653027e' as 'mod/livestream'
Diffstat (limited to 'mod/livestream/actions/delete.php')
-rwxr-xr-x | mod/livestream/actions/delete.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mod/livestream/actions/delete.php b/mod/livestream/actions/delete.php new file mode 100755 index 000000000..bd4757f55 --- /dev/null +++ b/mod/livestream/actions/delete.php @@ -0,0 +1,15 @@ +<?php + require_once "{$CONFIG->pluginspath}livestream/libraries.php"; + + // get object guid from URL + $object_guid = get_input('stream_id'); + $container_name = livestream_get_container_name($object_guid); + + if(livestream_delete($object_guid)){ + forward('livestream/'.$container_name); + }else{ + elgg_echo ("livestream:internal_error"); + + } + +?> |