|
|
|
@ -734,12 +734,11 @@ class AnnouncementManager { |
|
|
|
|
/** |
|
|
|
|
* this function gets all the users of the course, |
|
|
|
|
* including users from linked courses |
|
|
|
|
* @todo deprecate this function, use CourseManager class |
|
|
|
|
*/ |
|
|
|
|
public static function get_course_users() { |
|
|
|
|
//this would return only the users from real courses: |
|
|
|
|
//$user_list = CourseManager::get_user_list_from_course_code(api_get_course_id()); |
|
|
|
|
$session_id = api_get_session_id(); |
|
|
|
|
|
|
|
|
|
if ($session_id != 0) { |
|
|
|
|
$user_list = CourseManager::get_real_and_linked_user_list(api_get_course_id(), true, $session_id); |
|
|
|
|
} else { |
|
|
|
|