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

This commit is contained in:
Tim Hunt
2012-01-11 18:44:22 +01:00
committed by Eloy Lafuente (stronk7)
parent a1384605c7
commit 8676f75000
+4
View File
@@ -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.');