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.
This commit is contained in:
tjhunt 2009-10-03 09:02:21 +00:00
parent ddfa1863d3
commit 1f54c33bdd

View file

@ -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()) {