Permalink
Browse files

MDL-36303 Calendar: remove html special chars from event link in cale…

…ndar block
  • Loading branch information...
1 parent 7e8ae12 commit cfa4a78b758c69640b17af5c3ba70235d25c18db Rajesh Taneja committed Oct 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 calendar/lib.php
View
@@ -332,7 +332,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
} else if(isset($typesbyday[$day]['startuser'])) {
$class .= ' calendar_event_user';
}
- $cell = html_writer::link((string)$dayhref, $day, array('aria-controls' => $popupid.'_panel', 'id' => $popupid));
+ $cell = html_writer::link($dayhref, $day, array('aria-controls' => $popupid.'_panel', 'id' => $popupid));
} else {
$cell = $day;
}
@@ -375,7 +375,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
if(! isset($eventsbyday[$day])) {
$class .= ' eventnone';
$popupid = calendar_get_popup(true, false);
- $cell = html_writer::link('#', $day, array('aria-controls' => $popupid.'_panel', 'id' => $popupid));;
+ $cell = html_writer::link('#', $day, array('aria-controls' => $popupid.'_panel', 'id' => $popupid));
}
$cell = get_accesshide($today.' ').$cell;
}

0 comments on commit cfa4a78

Please sign in to comment.