@@ 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'; |
@@ 424-428 (lines=5) @@ | ||
421 | {return false;} |
|
422 | } |
|
423 | </script>'; |
|
424 | if (isset($_GET['deleteall'])) { |
|
425 | $eval[0]->delete_results(); |
|
426 | header('Location: '.api_get_path(WEB_CODE_PATH).'gradebook/gradebook_view_result.php?allresdeleted=&selecteval=' . $select_eval.'&'.api_get_cidreq()); |
|
427 | exit; |
|
428 | } |
|
429 | if (!isset($_GET['export']) && (!isset($_GET['import']))) { |
|
430 | if (!isset($_GET['selectcat'])) { |
|
431 | $interbreadcrumb[] = array( |
@@ 4112-4114 (lines=3) @@ | ||
4109 | $_course = api_get_course_info(); |
|
4110 | $user_id = api_get_user_id(); |
|
4111 | $subject = get_lang('NewForumPost').' - '.$_course['official_code']; |
|
4112 | if (isset($thread_information) && is_array($thread_information)) { |
|
4113 | $thread_link = api_get_path(WEB_CODE_PATH).'forum/viewthread.php?'.api_get_cidreq().'&forum='.$thread_information['forum_id'].'&thread='.$thread_information['thread_id']; |
|
4114 | } |
|
4115 | $email_body = get_lang('Dear').' '.api_get_person_name($user_info['firstname'], $user_info['lastname'], null, PERSON_NAME_EMAIL_ADDRESS).", <br />\n\r"; |
|
4116 | $email_body .= get_lang('NewForumPost')."\n"; |
|
4117 | $email_body .= get_lang('Course').': '.$_course['name'].' - ['.$_course['official_code']."] - <br />\n"; |