error("Error: Main databases NOT set up successfully");
}
print_continue('index.php');
+ print_footer('none');
die;
}
remove_dir($CFG->dataroot . '/cache', true); // flush cache
notify($strdatabasesuccess, "green");
print_continue("upgradesettings.php");
+ print_footer('none');
exit;
} else {
notify("Upgrade failed! (Could not update version in config table)");
notify(get_string("databasesuccess"), "green");
notify(get_string("databaseupgradebackups", "", $backup_version), "green");
print_continue($continueto);
- print_footer();
+ print_footer('none');
exit;
} else {
error("Upgrade of backup system failed! (Could not update version in config table)");
notify(get_string("databasesuccess"), "green");
notify(get_string("databaseupgradebackups", "", $backup_version), "green");
print_continue($continueto);
+ print_footer('none');
exit;
} else {
error("Upgrade of backup system failed! (Could not update version in config table)");
notify(get_string('databasesuccess'), 'green');
notify(get_string('databaseupgradegroups', '', $group_version), 'green');
print_continue($continueto);
- print_footer();
+ print_footer('none');
exit;
} else {
error("Upgrade of group system failed! (Could not update version in config table)");
notify(get_string('databasesuccess'), 'green');
notify(get_string('databaseupgradegroups', '', $group_version), 'green');
print_continue($continueto);
- print_footer();
+ print_footer('none');
exit;
} else {
error("Upgrade of group system failed! (Could not update version in config table)");
if (!empty($plugin->requires)) {
if ($plugin->requires > $CFG->version) {
+ $info = new object();
$info->pluginname = $plug;
$info->pluginversion = $plugin->version;
$info->currentmoodle = $CFG->version;
upgrade_log_start();
notify(get_string('pluginrequirementsnotmet', 'error', $info));
$updated_plugins = true;
- unset($info);
continue;
}
}
if ($updated_plugins) {
print_continue($return);
- print_footer();
+ print_footer('none');
die;
}
}
if (!empty($module->requires)) {
if ($module->requires > $CFG->version) {
+ $info = new object();
$info->modulename = $mod;
$info->moduleversion = $module->version;
$info->currentmoodle = $CFG->version;
upgrade_log_start();
notify(get_string('modulerequirementsnotmet', 'error', $info));
$updated_modules = true;
- unset($info);
continue;
}
}
if ($updated_modules) {
print_continue($return);
- print_footer();
+ print_footer('none');
die;
}
}
notify(get_string('databasesuccess'), 'notifysuccess');
notify(get_string('databaseupgradeblocks', '', $blocks_version), 'notifysuccess');
print_continue($continueto);
- print_footer();
+ print_footer('none');
exit;
} else {
error('Upgrade of blocks system failed! (Could not update version in config table)');
notify(get_string('databasesuccess'), 'notifysuccess');
notify(get_string('databaseupgradeblocks', '', $blocks_version), 'notifysuccess');
print_continue($continueto);
- print_footer();
+ print_footer('none');
exit;
} else {
error('Upgrade of blocks system failed! (Could not update version in config table)');
if (!empty($updated_blocks)) {
print_continue($continueto);
- print_footer();
+ print_footer('none');
die;
}
}
notify(get_string('databasesuccess'), 'notifysuccess');
notify(get_string('databaseupgradelocal', '', $local_version));
print_continue($continueto);
+ print_footer('none');
exit;
} else {
error('Upgrade of local database customisations failed! (Could not update version in config table)');