load(); if ($course && $course->getType() == 'course' && $course->canApprove()) { if ($course->approve()) { $Dippler->add_system_message(_("Course approved.")); forward($course->getURL()); } else { $Dippler->add_system_message(_("Course could not be approved.", "error")); forward($course->getURL()); } } forward("courses/my"); ?>