From 1f54c33bdd3de51b4351882dbf9d9be7807a7826 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Sat, 3 Oct 2009 09:02:21 +0000 Subject: [PATCH] install: MDL-20417 Install was failing on upgradesettings.php Only $PAGE->generaltype 'maintenance' works before the site is fully installed. We were specifying that on all other relevant pages, but it was missed out here. --- admin/upgradesettings.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/upgradesettings.php b/admin/upgradesettings.php index 132fee8e50..e1a829f317 100644 --- a/admin/upgradesettings.php +++ b/admin/upgradesettings.php @@ -13,6 +13,7 @@ require_login(0, false); $adminroot = admin_get_root(); // need all settings admin_externalpage_setup('upgradesettings'); // now hidden page +$PAGE->set_generaltype('maintenance'); // now we'll deal with the case that the admin has submitted the form with new settings if ($data = data_submitted() and confirm_sesskey()) { -- 2.39.5