wwwroot; if ($subcomment && koolielu_can_edit_subcomment($id)) { $entity = get_entity($subcomment->entity_guid); if ($entity instanceof ElggEntity) { $url = $entity->getURL(); if ($annoff > 0) { $url .= "?annoff={$annoff}"; } } if (delete_data("DELETE FROM {$CONFIG->dbprefix}koolielu_subcomments WHERE id = {$id}")) { /*translation:Comment removed.*/ system_message(elgg_echo("koolielu:subcomment:deleted")); } else { /*translation:Comment could not be removed.*/ register_error(elgg_echo("koolielu:subcomment:not:deleted")); } } else { /*translation:Comment could not be removed. Some values missing.*/ register_error(elgg_echo("koolielu:subcomment:not:deleted:err")); } forward($url); ?>