Skip to content

Commit

Permalink
MDL-26469 upgrade: cope with modules that do not set $module->cron.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt authored and stronk7 committed Jan 11, 2012
1 parent a138460 commit 8676f75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/upgradelib.php
Expand Up @@ -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 // all modules must have en lang pack
if (!is_readable("$fullmod/lang/en/$mod.php")) { if (!is_readable("$fullmod/lang/en/$mod.php")) {
throw new plugin_defective_exception($component, 'Missing mandatory en language pack.'); throw new plugin_defective_exception($component, 'Missing mandatory en language pack.');
Expand Down

0 comments on commit 8676f75

Please sign in to comment.