aboutsummaryrefslogtreecommitdiff
path: root/actions/comments/delete.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/comments/delete.php')
-rw-r--r--actions/comments/delete.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/comments/delete.php b/actions/comments/delete.php
index 54eb97077..f8458a152 100644
--- a/actions/comments/delete.php
+++ b/actions/comments/delete.php
@@ -12,7 +12,7 @@ if (!elgg_is_logged_in()) {
// Make sure we can get the comment in question
$annotation_id = (int) get_input('annotation_id');
-if ($comment = get_annotation($annotation_id)) {
+if ($comment = elgg_get_annotation_from_id($annotation_id)) {
$entity = get_entity($comment->entity_guid);