} break; case 'auto_launch': if (api_get_course_setting('enable_lp_auto_launch') == 1) { //Redirect to a specific LP if (!$is_allowed_to_edit) { api_not_allowed(true); } if ($debug > 0) { error_log('New LP - auto_launch action triggered', 0); } if (!$lp_found) { error_log('New LP - No learnpath given for set_autolaunch', 0); require 'lp_list.php'; } else { $learnPath->set_autolaunch($_GET['lp_id'], $_GET['status']); require 'lp_list.php'; exit; } } break; case 'build': if (!$is_allowed_to_edit) { api_not_allowed(true); } if ($debug > 0) { error_log('New LP - build action triggered', 0); } if (!$lp_found) { error_log('New LP - No learnpath given for build', 0); require 'lp_list.php';