Skip to content

Commit

Permalink
MDL-26469 upgrade: module cron setting not updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Jan 11, 2012
1 parent a33fc27 commit e40a76f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/upgradelib.php
Expand Up @@ -515,7 +515,7 @@ function upgrade_plugins_modules($startcallback, $endcallback, $verbose) {
require_once("$fullmod/db/install.php"); require_once("$fullmod/db/install.php");
// Set installation running flag, we need to recover after exception or error // Set installation running flag, we need to recover after exception or error
set_config('installrunning', 1, $module->name); set_config('installrunning', 1, $module->name);
$post_install_function = 'xmldb_'.$module->name.'_install';; $post_install_function = 'xmldb_'.$module->name.'_install';
$post_install_function(); $post_install_function();
unset_config('installrunning', $module->name); unset_config('installrunning', $module->name);
} }
Expand Down Expand Up @@ -549,7 +549,12 @@ function upgrade_plugins_modules($startcallback, $endcallback, $verbose) {
upgrade_mod_savepoint($result, $module->version, $mod, false); upgrade_mod_savepoint($result, $module->version, $mod, false);
} }


/// Upgrade various components // update cron flag if needed
if ($currmodule->cron != $module->cron) {
$DB->set_field('modules', 'cron', $module->cron, array('name' => $module->name));
}

// Upgrade various components
update_capabilities($component); update_capabilities($component);
log_update_descriptions($component); log_update_descriptions($component);
external_update_descriptions($component); external_update_descriptions($component);
Expand Down

0 comments on commit e40a76f

Please sign in to comment.