Minor - Use constant for icon size - #7274

1.9.x
Yannick Warnier 10 years ago
parent 335faa4e6f
commit 28f558bfe4
  1. 2
      main/inc/lib/main_api.lib.php
  2. 2
      main/template/default/auth/courses_categories.php

@ -1537,7 +1537,7 @@ function api_format_course_array($course_data) {
if (file_exists(api_get_path(SYS_COURSE_PATH).$course_data['directory'].'/course-pic85x85.png')) {
$url_image = api_get_path(WEB_COURSE_PATH).$course_data['directory'].'/course-pic85x85.png';
} else {
$url_image = api_get_path(WEB_IMG_PATH).'icons/64/course.png';
$url_image = api_get_path(WEB_IMG_PATH).'icons/'.ICON_SIZE_BIG.'/course.png';
}
$_course['course_image'] = $url_image;
return $_course;

@ -243,7 +243,7 @@ function display_thumbnail($course, $icon_title)
if (file_exists($course_path.'/course-pic85x85.png')) {
$course_medium_image = api_get_path(WEB_COURSE_PATH).$course['directory'].'/course-pic85x85.png'; // redimensioned image 85x85
} else {
$course_medium_image = api_get_path(WEB_IMG_PATH).'icons/64/course.png'; // without picture
$course_medium_image = api_get_path(WEB_IMG_PATH).'icons/'.ICON_SIZE_BIG.'/course.png'; // without picture
}
// course image

Loading…
Cancel
Save