Fixing notification icons to use the return_icon function see BT#4250

skala
Julio Montoya 14 years ago
parent c88a41d9cd
commit cb9c2ae646
  1. 5
      main/inc/lib/display.lib.php

@ -1154,9 +1154,10 @@ class Display {
} else {
$my_course['id_session'] = $course_info['id_session'];
}
//$label = get_lang(ucfirst($notification['tool'])).' '.get_lang('_title_notification').": ".get_lang($type)." ($lastDate)";
$label = get_lang('_title_notification').": ".get_lang($type)." ($lastDate)";
$retvalue .= '<a href="'.api_get_path(WEB_CODE_PATH).$notification['link'].'?cidReq='.$course_code.'&amp;ref='.$notification['ref'].'&amp;gidReq='.$notification['to_group_id'].'&amp;id_session='.$my_course['id_session'].'">'.
'<img title="-- '.get_lang(ucfirst($notification['tool'])).' -- '.get_lang('_title_notification').": ".get_lang($type)." ($lastDate).\"".' src="'.api_get_path(WEB_CODE_PATH).'img/'.$notification['image'].'" border="0" align="absbottom" />
</a>&nbsp;';
Display::return_icon($notification['image'], $label).'</a>&nbsp;';
}
return $retvalue;
}

Loading…
Cancel
Save