MDL-26469 upgrade: cope with modules that do not set $module->cron.

This commit is contained in:
Tim Hunt 2012-01-11 15:42:23 +00:00
parent 3412cb4386
commit ff05bb3166

View file

@ -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.');