| @@ 62-64 (lines=3) @@ | ||
| 59 | if ($count == 1) { |
|
| 60 | // If the exercise was added once redirect to the LP |
|
| 61 | $firstLp = current($exercise->lpList); |
|
| 62 | if (isset($firstLp['lp_id'])) { |
|
| 63 | $url = api_get_path(WEB_CODE_PATH) . 'newscorm/lp_controller.php?' . api_get_cidreq() . '&lp_id=' . $firstLp['lp_id'] . '&action=view&isStudentView=true'; |
|
| 64 | } |
|
| 65 | } else { |
|
| 66 | // If the exercise was added multiple times show the LP list |
|
| 67 | $url = api_get_path(WEB_CODE_PATH) . 'newscorm/lp_controller.php?' . api_get_cidreq().'&action=list'; |
|
| @@ 442-446 (lines=5) @@ | ||
| 439 | {return false;} |
|
| 440 | } |
|
| 441 | </script>'; |
|
| 442 | if (isset($_GET['deleteall'])) { |
|
| 443 | $eval[0]->delete_results(); |
|
| 444 | header('Location: '.api_get_path(WEB_CODE_PATH).'gradebook/gradebook_view_result.php?allresdeleted=&selecteval=' . $select_eval.'&'.api_get_cidreq()); |
|
| 445 | exit; |
|
| 446 | } |
|
| 447 | if (!isset($_GET['export']) && (!isset($_GET['import']))) { |
|
| 448 | if (!isset($_GET['selectcat'])) { |
|
| 449 | $interbreadcrumb[] = array( |
|
| @@ 4248-4250 (lines=3) @@ | ||
| 4245 | $_course = api_get_course_info(); |
|
| 4246 | $user_id = api_get_user_id(); |
|
| 4247 | $subject = get_lang('NewForumPost').' - '.$_course['official_code']; |
|
| 4248 | if (isset($thread_information) && is_array($thread_information)) { |
|
| 4249 | $thread_link = api_get_path(WEB_CODE_PATH).'forum/viewthread.php?'.api_get_cidreq().'&forum='.$thread_information['forum_id'].'&thread='.$thread_information['thread_id']; |
|
| 4250 | } |
|
| 4251 | $email_body = get_lang('Dear').' '.api_get_person_name($user_info['firstname'], $user_info['lastname'], null, PERSON_NAME_EMAIL_ADDRESS).", <br />\n\r"; |
|
| 4252 | $email_body .= get_lang('NewForumPost')."\n"; |
|
| 4253 | $email_body .= get_lang('Course').': '.$_course['name'].' - ['.$_course['official_code']."] - <br />\n"; |
|