Commit 75d5debe authored by Brendan Heywood's avatar Brendan Heywood

MDL-68010 tool_task: Allow disable tasks to still be run manually

parent c307f3b1
......@@ -115,7 +115,7 @@ class tool_task_renderer extends plugin_renderer_base {
$disabled = $plugindisabled || $task->get_disabled();
$runnow = '';
if (!$disabled && get_config('tool_task', 'enablerunnow') && $canruntasks ) {
if (!$plugindisabled && get_config('tool_task', 'enablerunnow') && $canruntasks ) {
$runnow = html_writer::div(html_writer::link(
new moodle_url('/admin/tool/task/schedule_task.php',
['task' => $classname]),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment