mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-59096 Tasks: Web running local plugin scheduled tasks fails
This commit is contained in:
parent
78ab4f741b
commit
6d7c06a990
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ function cron_run_single_task(\core\task\scheduled_task $task) {
|
||||||
}
|
}
|
||||||
$component = $task->get_component();
|
$component = $task->get_component();
|
||||||
if ($plugininfo = core_plugin_manager::instance()->get_plugin_info($component)) {
|
if ($plugininfo = core_plugin_manager::instance()->get_plugin_info($component)) {
|
||||||
if (!$plugininfo->is_enabled() && !$task->get_run_if_component_disabled()) {
|
if ($plugininfo->is_enabled() === false && !$task->get_run_if_component_disabled()) {
|
||||||
echo "Component is not enabled ($component).\n";
|
echo "Component is not enabled ($component).\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue