Fix custom plugin icons in course when they are disabled on course home page - refs #8219

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent 440ee1831e
commit 9a71abb7fa
  1. 2
      main/inc/lib/course_home.lib.php

@ -858,7 +858,7 @@ class CourseHome
}
if (!file_exists(api_get_path(SYS_CODE_PATH).'img/'.$tool['image']) &&
!file_exists(api_get_path(SYS_CODE_PATH).'img/icons/22/'.$tool['image'])) {
!file_exists(api_get_path(SYS_CODE_PATH).'img/icons/64/'.$tool['image'])) {
$tool['image'] = 'plugins.png';
}
$tool_link_params['href'] = api_get_path(WEB_PLUGIN_PATH).$tool['original_link'].'?'.api_get_cidreq();

Loading…
Cancel
Save