Skip to content

Commit

Permalink
MDL-36303 Calendar: remove html special chars from event link in cale…
Browse files Browse the repository at this point in the history
…ndar block
  • Loading branch information
Rajesh Taneja committed Nov 2, 2012
1 parent 7e8ae12 commit cfa4a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calendar/lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
} else if(isset($typesbyday[$day]['startuser'])) { } else if(isset($typesbyday[$day]['startuser'])) {
$class .= ' calendar_event_user'; $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 { } else {
$cell = $day; $cell = $day;
} }
Expand Down Expand Up @@ -375,7 +375,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
if(! isset($eventsbyday[$day])) { if(! isset($eventsbyday[$day])) {
$class .= ' eventnone'; $class .= ' eventnone';
$popupid = calendar_get_popup(true, false); $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; $cell = get_accesshide($today.' ').$cell;
} }
Expand Down

0 comments on commit cfa4a78

Please sign in to comment.