mirror of
https://github.com/moodle/moodle.git
synced 2025-04-05 00:12:42 +02:00
MDL-80512 tool_task: absolute path to required library file.
This commit is contained in:
parent
810554ee83
commit
c009abd938
@ -111,7 +111,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.
|
||||
|
@ -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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user