]> git.mjollnir.org Git - moodle.git/commitdiff
print_footer('none') during install and upgrade to hide home link and xhtml strict...
authorskodak <skodak>
Mon, 15 Jan 2007 19:16:29 +0000 (19:16 +0000)
committerskodak <skodak>
Mon, 15 Jan 2007 19:16:29 +0000 (19:16 +0000)
admin/index.php
backup/lib.php
group/db/upgrade.php
lib/adminlib.php
lib/blocklib.php
lib/locallib.php

index 52a8953dde7b9338446c3f844da544185fc159ee..1bc4d35056b1894c653abca0b3d97c0bd7993a78 100644 (file)
             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)");
index d731e803f10b749a73f354b0dccd310323975248..402e7ce6e7452024656e8c0494d17b72b082bbf8 100644 (file)
                     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)");
index 5c15d8e1e7acb3d172e0f27f99bafc6844f2b29f..45e3b60fcbdc34a68cc971f166b1632e6ea1e04f 100644 (file)
@@ -69,7 +69,7 @@ function upgrade_group_db($continueto) {
             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)");
@@ -127,7 +127,7 @@ function upgrade_group_db($continueto) {
                 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)");
index 767f7e04d31149491ffc3cc84975bed4aae48c32..5466009c73ce0972b25f5048d594462e61a45b01 100644 (file)
@@ -57,6 +57,7 @@ function upgrade_plugins($type, $dir, $return) {
 
         if (!empty($plugin->requires)) {
             if ($plugin->requires > $CFG->version) {
+                $info = new object();
                 $info->pluginname = $plug;
                 $info->pluginversion  = $plugin->version;
                 $info->currentmoodle = $CFG->version;
@@ -69,7 +70,6 @@ function upgrade_plugins($type, $dir, $return) {
                 upgrade_log_start();
                 notify(get_string('pluginrequirementsnotmet', 'error', $info));
                 $updated_plugins = true;
-                unset($info);
                 continue;
             }
         }
@@ -169,7 +169,7 @@ function upgrade_plugins($type, $dir, $return) {
 
     if ($updated_plugins) {
         print_continue($return);
-        print_footer();
+        print_footer('none');
         die;
     }
 }
@@ -227,6 +227,7 @@ function upgrade_activity_modules($return) {
 
         if (!empty($module->requires)) {
             if ($module->requires > $CFG->version) {
+                $info = new object();
                 $info->modulename = $mod;
                 $info->moduleversion  = $module->version;
                 $info->currentmoodle = $CFG->version;
@@ -239,7 +240,6 @@ function upgrade_activity_modules($return) {
                 upgrade_log_start();
                 notify(get_string('modulerequirementsnotmet', 'error', $info));
                 $updated_modules = true;
-                unset($info);
                 continue;
             }
         }
@@ -382,7 +382,7 @@ function upgrade_activity_modules($return) {
 
     if ($updated_modules) {
         print_continue($return);
-        print_footer();
+        print_footer('none');
         die;
     }
 }
index 623135003500314282ac206d81745708b84a58dc..ea05f0a634d5836cfb40c32dd00990cf70025e7e 100644 (file)
@@ -1039,7 +1039,7 @@ function upgrade_blocks_db($continueto) {
                 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)');
@@ -1100,7 +1100,7 @@ function upgrade_blocks_db($continueto) {
                 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)');
@@ -1375,7 +1375,7 @@ function upgrade_blocks_plugins($continueto) {
 
     if (!empty($updated_blocks)) {
         print_continue($continueto);
-        print_footer();
+        print_footer('none');
         die;
     }
 }
index b86b54119407115b9081a77b049e7a752fa56116..fafd993de42c2e68c43b712e926cc595f0acc8d9 100644 (file)
@@ -103,6 +103,7 @@ function upgrade_local_db($continueto) {
                 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)');