MDL-61554 calendar: Set $PAGE context in calendar export.
This commit is contained in:
committed by
Nick Phillips
parent
0b626ac5e0
commit
c27559d6b2
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user