getContainerEntity(); if (!$entity || !$entity->canEdit()) { continue; } $ia = elgg_set_ignore_access(true); if ($review == 'delete' || $review == elgg_echo('AU_anonymous_comments:delete_checked')) { $comment->delete(); $deleted = true; } if ($review == 'approve' || $review == elgg_echo('AU_anonymous_comments:approve_checked')) { $comment->enable(); $comment->__anonymous_comment_token = null; $approved = true; } elgg_set_ignore_access($ia); } if ($deleted) { system_message(elgg_echo('AU_anonymous_comments:deleted')); } if ($approved) { system_message(elgg_echo('AU_anonymous_comments:approved')); } if (!$deleted && !$approved) { register_error(elgg_echo('AU_anonymous_comments:invalid:moderation')); } forward(REFERER);