From: defacer Date: Tue, 27 Feb 2007 14:36:58 +0000 (+0000) Subject: Merging from MOODLE_16_STABLE: X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=53d8fac03415726eb13f76327ea6d4feb6063d4b;p=moodle.git Merging from MOODLE_16_STABLE: Fix for MDL-4701: Event URLs now include anchor so that the event is immediately visible. --- diff --git a/calendar/lib.php b/calendar/lib.php index b0ed6973ac..b3abd872ce 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -242,7 +242,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y $popupicon = $CFG->pixpath.'/c/user.gif'; $popupalt = ''; } - $popupcontent .= '
'.$popupalt.''.format_string($event->name,true).'
'; + $popupcontent .= '
'.$popupalt.''.format_string($event->name, true).'
'; } //Accessibility: functionality moved to calendar_get_popup. @@ -456,7 +456,7 @@ function calendar_print_event($event) { static $strftimetime; $event = calendar_add_event_metadata($event); - echo ''; + echo '
'; echo '
'; if (!empty($event->icon)) { echo $event->icon; @@ -883,7 +883,7 @@ function calendar_get_sideblock_upcoming($events, $linkhref = NULL) { if(!empty($linkhref)) { $ed = usergetdate($events[$i]->timestart); $href = calendar_get_link_href(CALENDAR_URL.$linkhref, $ed['mday'], $ed['mon'], $ed['year']); - $content .= ''.$events[$i]->name.''; + $content .= ''.$events[$i]->name.''; } else { $content .= $events[$i]->name; diff --git a/calendar/view.php b/calendar/view.php index 2f83fe30c3..42a4e7983a 100644 --- a/calendar/view.php +++ b/calendar/view.php @@ -470,7 +470,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) { if(isset($eventsbyday[$day])) { echo ''; }