admin MDL-20204 Fixed minor regression $PAGE->context needs to be set before calling...
authorSam Hemelryk <sam@moodle.com>
Wed, 14 Apr 2010 02:26:26 +0000 (02:26 +0000)
committerSam Hemelryk <sam@moodle.com>
Wed, 14 Apr 2010 02:26:26 +0000 (02:26 +0000)
admin/upgradesettings.php

index c87a5dd..1e527c2 100644 (file)
@@ -11,8 +11,8 @@ $return = optional_param('return', '', PARAM_ALPHA);
 /// no guest autologin
 require_login(0, false);
 
 /// no guest autologin
 require_login(0, false);
 
-$adminroot = admin_get_root(); // need all settings
 admin_externalpage_setup('upgradesettings'); // now hidden page
 admin_externalpage_setup('upgradesettings'); // now hidden page
+$adminroot = admin_get_root(); // need all settings
 
 // now we'll deal with the case that the admin has submitted the form with new settings
 if ($data = data_submitted() and confirm_sesskey()) {
 
 // now we'll deal with the case that the admin has submitted the form with new settings
 if ($data = data_submitted() and confirm_sesskey()) {