mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-60558 calendar: Upcoming should support categories
This commit is contained in:
parent
5c9acb8164
commit
d523cbcb26
7 changed files with 40 additions and 8 deletions
|
@ -61,7 +61,7 @@ class block_calendar_upcoming extends block_base {
|
|||
$courses = [$course->id => $course];
|
||||
}
|
||||
$calendar = new calendar_information(0, 0, 0, time());
|
||||
$calendar->set_sources($course, $courses);
|
||||
$calendar->set_sources($course, $courses, $this->page->category);
|
||||
|
||||
list($data, $template) = calendar_get_view($calendar, 'upcoming_mini');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue