@@ 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); |
@@ 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 |
@@ 2273-2277 (lines=5) @@ | ||
2270 | $courseInfo = api_get_course_info_by_id($courseId); |
|
2271 | $courseCode = $courseInfo['code']; |
|
2272 | // Get the students of the course |
|
2273 | if (empty($session_id)) { |
|
2274 | $students = CourseManager::get_student_list_from_course_code($courseCode); |
|
2275 | } else { |
|
2276 | $students = CourseManager::get_student_list_from_course_code($courseCode, true, $sessionId); |
|
2277 | } |
|
2278 | $emailsubject = '[' . api_get_setting('siteName') . '] '.get_lang('HomeworkCreated'); |
|
2279 | $currentUser = api_get_user_info(api_get_user_id()); |
|
2280 | if (!empty($students)) { |