|
|
|
@ -1254,6 +1254,7 @@ class CourseManager |
|
|
|
|
if (!empty($session_id) || !empty($sessionIdList)) { |
|
|
|
|
$sql = 'SELECT DISTINCT |
|
|
|
|
user.user_id, |
|
|
|
|
user.email, |
|
|
|
|
session_course_user.status as status_session, |
|
|
|
|
session_id, |
|
|
|
|
user.*, |
|
|
|
@ -1307,12 +1308,14 @@ class CourseManager |
|
|
|
|
course.code, |
|
|
|
|
course_rel_user.status as status_rel, |
|
|
|
|
user.user_id, |
|
|
|
|
user.email, |
|
|
|
|
course_rel_user.is_tutor, |
|
|
|
|
user.* '; |
|
|
|
|
} else { |
|
|
|
|
$sql = 'SELECT DISTINCT |
|
|
|
|
course_rel_user.status as status_rel, |
|
|
|
|
user.user_id, |
|
|
|
|
user.email, |
|
|
|
|
course_rel_user.is_tutor, |
|
|
|
|
user.* '; |
|
|
|
|
} |
|
|
|
@ -1512,6 +1515,7 @@ class CourseManager |
|
|
|
|
$sessionName = !empty($sessionId) ? ' - '.$user['session_name'] : ''; |
|
|
|
|
$report_info['course'] = $user['title'].$sessionName; |
|
|
|
|
$report_info['user'] = api_get_person_name($user['firstname'], $user['lastname']); |
|
|
|
|
$report_info['email'] = $user['email']; |
|
|
|
|
$report_info['time'] = api_time_to_hms( |
|
|
|
|
Tracking::get_time_spent_on_the_course( |
|
|
|
|
$user['user_id'], |
|
|
|
@ -3136,7 +3140,7 @@ class CourseManager |
|
|
|
|
//Crop the image to adjust 4:3 ratio |
|
|
|
|
$image = new Image($source_file); |
|
|
|
|
$image->crop($cropParameters); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Resize the images in two formats |
|
|
|
|
$medium = new Image($source_file); |
|
|
|
|
$medium->resize(85); |
|
|
|
@ -3144,7 +3148,7 @@ class CourseManager |
|
|
|
|
$normal = new Image($source_file); |
|
|
|
|
$normal->resize(300); |
|
|
|
|
$normal->send_image($course_image, -1, 'png'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$result = $medium && $normal; |
|
|
|
|
|
|
|
|
|
return $result ? $result : false; |
|
|
|
|