Skip to content

Commit

Permalink
Merge branch 'MDL-80512' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
HuongNV13 authored and andrewnicols committed Feb 8, 2024
2 parents 9ad941c + c009abd commit 3d2d81a
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 @@ -89,7 +89,8 @@

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

0 comments on commit 3d2d81a

Please sign in to comment.