Skip to content

Commit

Permalink
db upgrades are now XHTML-correct -- at least when they succeed! With…
Browse files Browse the repository at this point in the history
… this patch, 1.8 installation completes correctly
  • Loading branch information
martinlanghoff committed Jan 4, 2007
1 parent f3f7610 commit b776b27
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions backup/lib.php
Expand Up @@ -351,6 +351,7 @@ function upgrade_backup_db($continueto) {
notify(get_string("databasesuccess"), "green");
notify(get_string("databaseupgradebackups", "", $backup_version), "green");
print_continue($continueto);
print_footer();
exit;
} else {
error("Upgrade of backup system failed! (Could not update version in config table)");
Expand Down
4 changes: 3 additions & 1 deletion group/db/upgrade.php
@@ -1,4 +1,4 @@
<?php //$Id: upgrade.php,v 1.2 2007/01/03 04:55:20 moodler Exp $
<?php //$Id$

// This file keeps track of upgrades to
// groups
Expand Down Expand Up @@ -69,6 +69,7 @@ function upgrade_group_db($continueto) {
notify(get_string('databasesuccess'), 'green');
notify(get_string('databaseupgradegroups', '', $group_version), 'green');
print_continue($continueto);
print_footer();
exit;
} else {
error("Upgrade of group system failed! (Could not update version in config table)");
Expand Down Expand Up @@ -126,6 +127,7 @@ function upgrade_group_db($continueto) {
notify(get_string('databasesuccess'), 'green');
notify(get_string('databaseupgradegroups', '', $group_version), 'green');
print_continue($continueto);
print_footer();
exit;
} else {
error("Upgrade of group system failed! (Could not update version in config table)");
Expand Down
2 changes: 2 additions & 0 deletions lib/adminlib.php
Expand Up @@ -169,6 +169,7 @@ function upgrade_plugins($type, $dir, $return) {

if ($updated_plugins) {
print_continue($return);
print_footer();
die;
}
}
Expand Down Expand Up @@ -381,6 +382,7 @@ function upgrade_activity_modules($return) {

if ($updated_modules) {
print_continue($return);
print_footer();
die;
}
}
Expand Down
3 changes: 3 additions & 0 deletions lib/blocklib.php
Expand Up @@ -1039,6 +1039,7 @@ function upgrade_blocks_db($continueto) {
notify(get_string('databasesuccess'), 'notifysuccess');
notify(get_string('databaseupgradeblocks', '', $blocks_version), 'notifysuccess');
print_continue($continueto);
print_footer();
exit;
} else {
error('Upgrade of blocks system failed! (Could not update version in config table)');
Expand Down Expand Up @@ -1099,6 +1100,7 @@ function upgrade_blocks_db($continueto) {
notify(get_string('databasesuccess'), 'notifysuccess');
notify(get_string('databaseupgradeblocks', '', $blocks_version), 'notifysuccess');
print_continue($continueto);
print_footer();
exit;
} else {
error('Upgrade of blocks system failed! (Could not update version in config table)');
Expand Down Expand Up @@ -1373,6 +1375,7 @@ function upgrade_blocks_plugins($continueto) {

if (!empty($updated_blocks)) {
print_continue($continueto);
print_footer();
die;
}
}
Expand Down
2 changes: 2 additions & 0 deletions user/edit.php
Expand Up @@ -395,6 +395,8 @@

if (!isset($USER->newadminuser)) {
print_footer($course);
} else {
print_footer();
}

exit;
Expand Down

0 comments on commit b776b27

Please sign in to comment.