| @@ 21-25 (lines=5) @@ | ||
| 18 | $sessionId = api_get_session_id(); |
|
| 19 | $courseCode = api_get_course_id(); |
|
| 20 | ||
| 21 | if (empty($sessionId)) { |
|
| 22 | $students = CourseManager :: get_student_list_from_course_code($courseCode, false); |
|
| 23 | } else { |
|
| 24 | $students = CourseManager :: get_student_list_from_course_code($courseCode, true, $sessionId); |
|
| 25 | } |
|
| 26 | $count_students = count($students); |
|
| 27 | $question_list = $objExercise->get_validated_question_list(); |
|
| 28 | ||
| @@ 252-256 (lines=5) @@ | ||
| 249 | $courseInfo = api_get_course_info_by_id($courseId); |
|
| 250 | $courseCode = $courseInfo['code']; |
|
| 251 | ||
| 252 | if (empty($sessionId)) { |
|
| 253 | $students = CourseManager::get_student_list_from_course_code($courseCode, false); |
|
| 254 | } else { |
|
| 255 | $students = CourseManager::get_student_list_from_course_code($courseCode, true, $sessionId); |
|
| 256 | } |
|
| 257 | ||
| 258 | $url = api_get_course_url($courseCode, $sessionId); |
|
| 259 | $url = Display::url($url, $url); |
|
| @@ 2334-2338 (lines=5) @@ | ||
| 2331 | $courseInfo = api_get_course_info_by_id($courseId); |
|
| 2332 | $courseCode = $courseInfo['code']; |
|
| 2333 | // Get the students of the course |
|
| 2334 | if (empty($session_id)) { |
|
| 2335 | $students = CourseManager::get_student_list_from_course_code($courseCode); |
|
| 2336 | } else { |
|
| 2337 | $students = CourseManager::get_student_list_from_course_code($courseCode, true, $sessionId); |
|
| 2338 | } |
|
| 2339 | $emailsubject = '[' . api_get_setting('siteName') . '] '.get_lang('HomeworkCreated'); |
|
| 2340 | $currentUser = api_get_user_info(api_get_user_id()); |
|
| 2341 | if (!empty($students)) { |
|