MDL-61554 calendar: Set $PAGE context in calendar export.

This commit is contained in:
Nick Phillips
2021-12-07 12:23:32 +13:00
committed by Nick Phillips
parent 0b626ac5e0
commit c27559d6b2
+2
View File
@@ -31,6 +31,8 @@ if (!$authuserid && !$authusername) {
die('Invalid authentication');
}
$PAGE->set_context(context_system::instance());
// Get the calendar type we are using.
$calendartype = \core_calendar\type_factory::get_calendar_instance();