MDL-20204 prevent distractions (such as blocks) on the upgrade settings page

This commit is contained in:
Petr Skoda
2010-05-29 18:11:42 +00:00
parent fa2a76f20c
commit 12d77d4db4
+1
View File
@@ -12,6 +12,7 @@ $return = optional_param('return', '', PARAM_ALPHA);
require_login(0, false);
admin_externalpage_setup('upgradesettings'); // now hidden page
$PAGE->set_pagelayout('maintenance'); // do not print any blocks or other rubbish, we want to force saving
$adminroot = admin_get_root(); // need all settings
// now we'll deal with the case that the admin has submitted the form with new settings