Skip to content

Commit

Permalink
MDL-61554 calendar: Set $PAGE context in calendar export.
Browse files Browse the repository at this point in the history
  • Loading branch information
nwp90 committed Dec 6, 2021
1 parent 0b626ac commit c27559d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions calendar/export_execute.php
Expand Up @@ -31,6 +31,8 @@
die('Invalid authentication');
}

$PAGE->set_context(context_system::instance());

// Get the calendar type we are using.
$calendartype = \core_calendar\type_factory::get_calendar_instance();

Expand Down

0 comments on commit c27559d

Please sign in to comment.