From 603c794190ce5c655f1f3b7a1d1428167e78358e Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Tue, 23 Jan 2024 09:14:27 +0000 Subject: [PATCH] MDL-80512 tool_task: absolute path to required library file. --- admin/tool/task/schedule_task.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/tool/task/schedule_task.php b/admin/tool/task/schedule_task.php index 84097ba0571..3e8a59475dc 100644 --- a/admin/tool/task/schedule_task.php +++ b/admin/tool/task/schedule_task.php @@ -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).