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

This commit is contained in:
Brendan Heywood 2020-10-14 22:47:48 +11:00
parent c307f3b138
commit 75d5debe54

View File

@ -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]),