From d747d41bf2820d336a3b26d45fb40f8dccc2abac Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 3 Mar 2008 20:40:03 +0000 Subject: [PATCH] MDL-13749 Front Page Calendar: Not displaying information from courses student is a member of.; merged from MOODLE_19_STABLE --- blocks/calendar_month/block_calendar_month.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/blocks/calendar_month/block_calendar_month.php b/blocks/calendar_month/block_calendar_month.php index 900a97443b7..8a02ed57a1c 100644 --- a/blocks/calendar_month/block_calendar_month.php +++ b/blocks/calendar_month/block_calendar_month.php @@ -32,11 +32,14 @@ class block_calendar_month extends block_base { // It definitely needs SOME comment here! $courseshown = $COURSE->id; - if($courseshown == SITEID) { + if ($courseshown == SITEID) { // Being displayed at site level. This will cause the filter to fall back to auto-detecting // the list of courses it will be grabbing events from. $filtercourse = NULL; $groupeventsfrom = NULL; + $SESSION->cal_courses_shown = calendar_get_default_courses(true); + calendar_set_referring_course(0); + } else { // Forcibly filter events to include only those from the particular course we are in. $filtercourse = array($courseshown => $COURSE);