]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14052 fixed course display in upcoming events block - credit goes to Greg Rodenhi...
authorskodak <skodak>
Thu, 17 Apr 2008 19:19:55 +0000 (19:19 +0000)
committerskodak <skodak>
Thu, 17 Apr 2008 19:19:55 +0000 (19:19 +0000)
blocks/calendar_upcoming/block_calendar_upcoming.php

index a4e72f7bf0f5187b16d7d7b7f95ce42d64a17b02..b47559593fd991fb0ecc19dfed5aa514a3945444 100644 (file)
@@ -44,6 +44,8 @@ class block_calendar_upcoming extends block_base {
                 // 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);