Permalink
Browse files

db upgrades are now XHTML-correct -- at least when they succeed! With…

… this patch, 1.8 installation completes correctly
  • Loading branch information...
1 parent f3f7610 commit b776b2773871e33f47a3c84136764291f3ec1a55 martinlanghoff committed Jan 4, 2007
Showing with 11 additions and 1 deletion.
  1. +1 −0 backup/lib.php
  2. +3 −1 group/db/upgrade.php
  3. +2 −0 lib/adminlib.php
  4. +3 −0 lib/blocklib.php
  5. +2 −0 user/edit.php
View
@@ -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)");
@@ -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
@@ -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)");
@@ -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)");
View
@@ -169,6 +169,7 @@ function upgrade_plugins($type, $dir, $return) {
if ($updated_plugins) {
print_continue($return);
+ print_footer();
die;
}
}
@@ -381,6 +382,7 @@ function upgrade_activity_modules($return) {
if ($updated_modules) {
print_continue($return);
+ print_footer();
die;
}
}
View
@@ -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)');
@@ -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)');
@@ -1373,6 +1375,7 @@ function upgrade_blocks_plugins($continueto) {
if (!empty($updated_blocks)) {
print_continue($continueto);
+ print_footer();
die;
}
}
View
@@ -395,6 +395,8 @@
if (!isset($USER->newadminuser)) {
print_footer($course);
+ } else {
+ print_footer();
}
exit;

0 comments on commit b776b27

Please sign in to comment.