| @@ 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( |
|
| 23 | $courseCode, |
|
| 24 | false |
|
| 25 | ); |
|
| 26 | } else { |
|
| 27 | $students = CourseManager:: get_student_list_from_course_code( |
|
| 28 | $courseCode, |
|
| @@ 2429-2433 (lines=5) @@ | ||
| 2426 | $courseInfo = api_get_course_info_by_id($courseId); |
|
| 2427 | $courseCode = $courseInfo['code']; |
|
| 2428 | // Get the students of the course |
|
| 2429 | if (empty($session_id)) { |
|
| 2430 | $students = CourseManager::get_student_list_from_course_code($courseCode); |
|
| 2431 | } else { |
|
| 2432 | $students = CourseManager::get_student_list_from_course_code($courseCode, true, $sessionId); |
|
| 2433 | } |
|
| 2434 | $emailsubject = '['.api_get_setting('siteName').'] '.get_lang('HomeworkCreated'); |
|
| 2435 | $currentUser = api_get_user_info(api_get_user_id()); |
|
| 2436 | if (!empty($students)) { |
|
| @@ 2377-2381 (lines=5) @@ | ||
| 2374 | $work = get_work_data_by_id($workId, $courseId, $sessionId); |
|
| 2375 | $workInfo = array_merge($assignment, $work); |
|
| 2376 | ||
| 2377 | if (empty($session_id)) { |
|
| 2378 | $students = CourseManager::get_student_list_from_course_code($courseInfo['code']); |
|
| 2379 | } else { |
|
| 2380 | $students = CourseManager::get_student_list_from_course_code($courseInfo['code'], true, $sessionId); |
|
| 2381 | } |
|
| 2382 | ||
| 2383 | $bodyView = new Template(null, false, false, false, false, false); |
|
| 2384 | ||