From c2e2d3ae222a55086bed95d897c6e8c50b066c37 Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 25 Mar 2010 22:00:44 +0000 Subject: Converting all line endings to unix style. git-svn-id: http://code.elgg.org/elgg/trunk@5512 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/likes/delete.php | 62 ++++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'actions/likes') diff --git a/actions/likes/delete.php b/actions/likes/delete.php index a774c06e1..78142e186 100644 --- a/actions/likes/delete.php +++ b/actions/likes/delete.php @@ -1,32 +1,32 @@ - - * @link http://elgg.org/ - */ - -// Ensure we're logged in -if (!isloggedin()) { - forward(); -} - -// Make sure we can get the comment in question -$annotation_id = (int) get_input('annotation_id'); -if ($likes = get_annotation($annotation_id)) { - - $entity = get_entity($likes->entity_guid); - - if ($likes->canEdit()) { - $likes->delete(); - system_message(elgg_echo("likes:deleted")); - forward($entity->getURL()); - } - -} else { - $url = ""; -} - -register_error(elgg_echo("likes:notdeleted")); + + * @link http://elgg.org/ + */ + +// Ensure we're logged in +if (!isloggedin()) { + forward(); +} + +// Make sure we can get the comment in question +$annotation_id = (int) get_input('annotation_id'); +if ($likes = get_annotation($annotation_id)) { + + $entity = get_entity($likes->entity_guid); + + if ($likes->canEdit()) { + $likes->delete(); + system_message(elgg_echo("likes:deleted")); + forward($entity->getURL()); + } + +} else { + $url = ""; +} + +register_error(elgg_echo("likes:notdeleted")); forward($_SERVER['HTTP_REFERER']); \ No newline at end of file -- cgit v1.2.3