From cfa4a78b758c69640b17af5c3ba70235d25c18db Mon Sep 17 00:00:00 2001
From: Rajesh Taneja <rajesh@moodle.com>
Date: Wed, 31 Oct 2012 15:43:26 +0800
Subject: [PATCH] MDL-36303 Calendar: remove html special chars from event link
 in calendar block

---
 calendar/lib.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/calendar/lib.php b/calendar/lib.php
index a8d908d11ffe6..da6b81dbb3447 100644
--- a/calendar/lib.php
+++ b/calendar/lib.php
@@ -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;
         }