mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-14837_show-time-on-no-duration-events' of https://github.com/ncsu-delta/moodle
This commit is contained in:
commit
ecb4c3f0ed
@ -1622,13 +1622,13 @@ function calendar_format_event_time($event, $now, $linkparams = null, $usecommon
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$time = ' ';
|
||||
$time = calendar_time_representation($event->timestart);
|
||||
|
||||
// Set printable representation
|
||||
if (!$showtime) {
|
||||
$day = calendar_day_representation($event->timestart, $now, $usecommonwords);
|
||||
$url = calendar_get_link_href(new moodle_url(CALENDAR_URL.'view.php', $linkparams), $startdate['mday'], $startdate['mon'], $startdate['year']);
|
||||
$eventtime = html_writer::link($url, $day).trim($time);
|
||||
$eventtime = html_writer::link($url, $day).', '.trim($time);
|
||||
} else {
|
||||
$eventtime = $time;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user