This commit is contained in:
Huong Nguyen
2024-02-08 15:31:59 +08:00
committed by Andrew Nicols
2 changed files with 3 additions and 2 deletions
+1 -1
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.
+2 -1
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).