Laurent Opprecht 13 years ago
parent
commit
033626d76d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      main/inc/lib/display.lib.php

+ 3 - 2
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;
     }