Merge pull request #2110 from aragonc/1.11.x

fix session_default.png - refs BT#13094
pull/2487/head
Alex Aragon Calixto 7 years ago committed by GitHub
commit 01d4b41e57
  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