Fix translation for custom icon on course homepage - refs #8194

ofaj
Angel Fernando Quiroz Campos 9 years ago
parent 44af34b7ec
commit 7878586cf8
  1. 8
      main/course_info/tools.php

@ -118,12 +118,8 @@ switch ($action) {
$iconsTools .= Display::page_header(get_lang('CustomizeIcons'), null, 'h4');
$iconsTools .= '<div class="row">';
foreach ($toolList as $tool) {
if ($tool['id']>20) {
$toolIconName = $tool['name'];
} else {
$toolIconName = get_lang('Tool'.api_underscore_to_camel_case($tool['name']));
}
$toolIconName = 'Tool' . api_underscore_to_camel_case($tool['name']);
$toolIconName = isset($$toolIconName) ? get_lang($toolIconName) : $tool['name'];
$iconsTools .= '<div class="col-md-2">';
$iconsTools .= '<div class="items-tools">';

Loading…
Cancel
Save