MDL-80512 tool_task: absolute path to required library file.

This commit is contained in:
Paul Holden 2024-01-23 09:14:27 +00:00
parent e591ddc4e8
commit 603c794190
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164

View File

@ -87,7 +87,8 @@ require_sesskey();
// Prepare to handle output via mtrace.
echo html_writer::start_tag('pre');
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).