MDL-59750 core_calendar: fix minithree logic on get_view

This commit is contained in:
Simey Lameze 2017-09-20 13:25:19 +08:00
parent 563ae695dc
commit c602220798

View File

@ -3095,9 +3095,9 @@ function calendar_get_view(\calendar_information $calendar, $view, $includenavig
];
$data = [];
if ($view == "month" || $view == "mini") {
if ($view == "month" || $view == "mini" || $view == "minithree") {
$month = new \core_calendar\external\month_exporter($calendar, $type, $related);
$month->set_includenavigation($includenavigation);
$month->set_includenavigation($includenavigation);
$data = $month->export($renderer);
} else if ($view == "day") {
$daydata = $type->timestamp_to_date_array($tstart);