MDL-26469 upgrade: cope with modules that do not set $module->cron.
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
a1384605c7
commit
8676f75000
@@ -463,6 +463,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.');
|
||||
|
||||
Reference in New Issue
Block a user