load(); if ($comment && $comment->getType() == 'courseblogcomment' && $comment->canEdit()) { $course = $comment->course; $post = $comment->courseblog_post; if ($comment->delete()) { $Dippler->add_system_message(_("Comment deleted.")); forward("course/announcements/{$course}/post/{$post}"); } else { $Dippler->add_system_message(_("Comment could not be deleted."), "error"); forward($comment->getURL()); } } forward("courses/my"); ?>