| @@ 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 | ||
| @@ 2261-2265 (lines=5) @@ | ||
| 2258 | $courseInfo = api_get_course_info_by_id($courseId); |
|
| 2259 | $courseCode = $courseInfo['code']; |
|
| 2260 | // Get the students of the course |
|
| 2261 | if (empty($session_id)) { |
|
| 2262 | $students = CourseManager::get_student_list_from_course_code($courseCode); |
|
| 2263 | } else { |
|
| 2264 | $students = CourseManager::get_student_list_from_course_code($courseCode, true, $sessionId); |
|
| 2265 | } |
|
| 2266 | $emailsubject = '[' . api_get_setting('siteName') . '] '.get_lang('HomeworkCreated'); |
|
| 2267 | $currentUser = api_get_user_info(api_get_user_id()); |
|
| 2268 | if (!empty($students)) { |
|