Merge branch '1.11.x' of github.com:chamilo/chamilo-lms into 1.11.x

pull/2487/head
jmontoyaa 7 years ago
commit e1277c8c12
  1. 9
      main/auth/hrm_courses.php
  2. 9
      main/inc/lib/api.lib.php

@ -29,7 +29,14 @@ function formatCourseInfo(Course $course, $sessionId = 0, $showCourseCode = fals
'code_course' => $showCourseCode ? $course->getCode() : null,
'image' => file_exists($sysCoursePath.'/course-pic.png')
? $webCoursePath.'/course-pic.png'
: Display::returnIconPath('session_default.png'),
: Display::return_icon(
'session_default.png',
null,
null,
null,
null,
true
),
'teachers' => api_get_setting('display_teacher_in_courselist') === 'true'
? $teachers = CourseManager::getTeachersFromCourse($course->getId(), true)
: []

@ -1956,7 +1956,14 @@ function api_format_course_array($course_data)
$url_image = $webCourseHome.'/course-pic.png';
$_course['course_image_large_source'] = $courseSys.'/course-pic.png';
} else {
$url_image = Display::returnIconPath('session_default.png');
$url_image = Display::return_icon(
'session_default.png',
null,
null,
null,
null,
true
);
}
$_course['course_image_large'] = $url_image;

Loading…
Cancel
Save