]> git.mjollnir.org Git - moodle.git/commitdiff
install: MDL-20417 Install was failing on upgradesettings.php
authortjhunt <tjhunt>
Sat, 3 Oct 2009 09:02:21 +0000 (09:02 +0000)
committertjhunt <tjhunt>
Sat, 3 Oct 2009 09:02:21 +0000 (09:02 +0000)
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

index 132fee8e50dd94921137995a547913b83ca1b4a5..e1a829f317391a61cd067c23f7c700e47fe604db 100644 (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()) {