mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-26469 upgrade: cope with modules that do not set $module->cron.
This commit is contained in:
parent
3412cb4386
commit
ff05bb3166
1 changed files with 4 additions and 0 deletions
|
@ -465,6 +465,10 @@ function upgrade_plugins_modules($startcallback, $endcallback, $verbose) {
|
|||
}
|
||||
}
|
||||
|
||||
if (empty($module->cron)) {
|
||||
$module->cron = 0;
|
||||
}
|
||||
|
||||
// all modules must have en lang pack
|
||||
if (!is_readable("$fullmod/lang/en/$mod.php")) {
|
||||
throw new plugin_defective_exception($component, 'Missing mandatory en language pack.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue