MDL-20204 prevent distractions (such as blocks) on the upgrade settings page
authorPetr Skoda <skodak@moodle.org>
Sat, 29 May 2010 18:11:42 +0000 (18:11 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 29 May 2010 18:11:42 +0000 (18:11 +0000)
admin/upgradesettings.php

index 1e527c2..5ba77ed 100644 (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