Skip to content

Commit

Permalink
Merge branch 'MDL-80512-402' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_402_STABLE
  • Loading branch information
HuongNV13 authored and andrewnicols committed Feb 8, 2024
2 parents 65123d4 + c88b80e commit 32473f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/tool/task/run_adhoctasks.php
Expand Up @@ -117,7 +117,7 @@ function ($t) use ($now) {
\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.
Expand Down
3 changes: 2 additions & 1 deletion admin/tool/task/schedule_task.php
Expand Up @@ -85,7 +85,8 @@

// 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).
Expand Down

0 comments on commit 32473f4

Please sign in to comment.