MDL-70107 tool_task: Unlock session on long running tasks in UI

This commit is contained in:
Brendan Heywood 2020-11-03 18:08:24 +11:00
parent 6ef4e66f03
commit 2481b041ce

View File

@ -83,6 +83,8 @@ if (!optional_param('confirm', 0, PARAM_INT)) {
// Action requires session key.
require_sesskey();
\core\session\manager::write_close();
// Prepare to handle output via mtrace.
echo html_writer::start_tag('pre');
$CFG->mtrace_wrapper = 'tool_task_mtrace_wrapper';