case 'export_to_pdf': if (!learnpath::is_lp_visible_for_student($learnPath->lp_id, api_get_user_id())) { api_not_allowed(); } $hideScormPdfLink = api_get_setting('course.hide_scorm_pdf_link'); if ($hideScormPdfLink === 'true') { api_not_allowed(true); } if ($debug > 0) { error_log('New LP - export action triggered', 0); } if (!$lp_found) { error_log('New LP - No learnpath given for export_to_pdf', 0); require 'lp_list.php'; } else { $result = $learnPath->scorm_export_to_pdf($_GET['lp_id']); if (!$result) { require 'lp_list.php'; } exit; } break; case 'delete': if (!$is_allowed_to_edit) { api_not_allowed(true); } if ($debug > 0) { error_log('New LP - delete action triggered', 0); } if (!$lp_found) { error_log('New LP - No learnpath given for delete', 0);