Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-26469 upgrade: module cron setting not updated.

  • Loading branch information...
commit e40a76f5acea810cee7ee4558346ef3897a85fb7 1 parent a33fc27
@timhunt timhunt authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 lib/upgradelib.php
View
9 lib/upgradelib.php
@@ -515,7 +515,7 @@ function upgrade_plugins_modules($startcallback, $endcallback, $verbose) {
require_once("$fullmod/db/install.php");
// Set installation running flag, we need to recover after exception or error
set_config('installrunning', 1, $module->name);
- $post_install_function = 'xmldb_'.$module->name.'_install';;
+ $post_install_function = 'xmldb_'.$module->name.'_install';
$post_install_function();
unset_config('installrunning', $module->name);
}
@@ -549,7 +549,12 @@ function upgrade_plugins_modules($startcallback, $endcallback, $verbose) {
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);
log_update_descriptions($component);
external_update_descriptions($component);

0 comments on commit e40a76f

Please sign in to comment.
Something went wrong with that request. Please try again.