This commit is contained in:
Huong Nguyen 2024-02-07 13:30:34 +07:00 committed by Andrew Nicols
commit 3d2d81a411
No known key found for this signature in database
GPG key ID: 6D1E3157C8CFBF14
2 changed files with 3 additions and 2 deletions

View file

@ -117,7 +117,7 @@ require_sesskey();
\core\session\manager::write_close();
// Prepare to handle output via mtrace.
require('lib.php');
require_once("{$CFG->dirroot}/{$CFG->admin}/tool/task/lib.php");
$CFG->mtrace_wrapper = 'tool_task_mtrace_wrapper';
// Run the specified tasks.

View file

@ -89,7 +89,8 @@ echo $OUTPUT->select_element_for_append();
// Prepare to handle output via mtrace.
echo html_writer::start_tag('pre', ['style' => 'color: #fff; background: #333; padding: 1em; min-height: 24lh']);
require('lib.php');
require_once("{$CFG->dirroot}/{$CFG->admin}/tool/task/lib.php");
$CFG->mtrace_wrapper = 'tool_task_mtrace_wrapper';
// Run the specified task (this will output an error if it doesn't exist).