]> git.mjollnir.org Git - moodle.git/commitdiff
db upgrades are now XHTML-correct -- at least when they succeed! With this patch...
authormartinlanghoff <martinlanghoff>
Thu, 4 Jan 2007 01:07:35 +0000 (01:07 +0000)
committermartinlanghoff <martinlanghoff>
Thu, 4 Jan 2007 01:07:35 +0000 (01:07 +0000)
backup/lib.php
group/db/upgrade.php
lib/adminlib.php
lib/blocklib.php
user/edit.php

index c98f3203a50d2550305cfeb2ab328be70e0c30cf..d731e803f10b749a73f354b0dccd310323975248 100644 (file)
                     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)");
index a5486df9f4ce047e75263e26bb2282b36ed9fd4a..5c15d8e1e7acb3d172e0f27f99bafc6844f2b29f 100644 (file)
@@ -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)");
index 7fc110dff1306d2dda4f4bfacd099fb445702273..e08cb5f66d9c0aa9fae663b677a8aea27957dbf1 100644 (file)
@@ -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;
     }
 }
index ee750ce2677c8c5229bb1f91e51ce9f079bda25f..623135003500314282ac206d81745708b84a58dc 100644 (file)
@@ -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;
     }
 }
index ac3ad9c0b57884495737a8e1db7e55f1abfa63fe..6671fde741ba2c874c222c70be147f115a172b91 100644 (file)
 
     if (!isset($USER->newadminuser)) {
         print_footer($course);
+    } else {
+        print_footer();
     }
 
     exit;