diff options
Diffstat (limited to 'actions/likes/delete.php')
-rw-r--r-- | actions/likes/delete.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/actions/likes/delete.php b/actions/likes/delete.php deleted file mode 100644 index 7d535052d..000000000 --- a/actions/likes/delete.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php -/** - * Elgg delete like action - * - * @package Elgg.Core - * @subpackage Likes - */ - -// Ensure we're logged in -if (!elgg_is_logged_in()) { - forward(); -} - -// Make sure we can get the comment in question -$annotation_id = (int) get_input('annotation_id'); -if ($likes = elgg_get_annotation_from_id($annotation_id)) { - - $entity = get_entity($likes->entity_guid); - - if ($likes->canEdit()) { - $likes->delete(); - system_message(elgg_echo("likes:deleted")); - forward(REFERER); - } - -} else { - $url = ""; -} - -register_error(elgg_echo("likes:notdeleted")); -forward(REFERER);
\ No newline at end of file |