From: tjhunt Date: Fri, 8 May 2009 02:43:06 +0000 (+0000) Subject: admin settings/blocklib: MDL-19108 Error when saving any admin settings X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ac9e2207348b1c8ae591bcc49e7a94e6d07c42f1;p=moodle.git admin settings/blocklib: MDL-19108 Error when saving any admin settings Regression from MDL-19010 --- diff --git a/admin/settings.php b/admin/settings.php index 847814b426..667ee3ab98 100644 --- a/admin/settings.php +++ b/admin/settings.php @@ -48,7 +48,7 @@ if ($data = data_submitted() and confirm_sesskey()) { $focus = $firsterror->id; } $adminroot = admin_get_root(true); //reload tree - $settingspage = $adminroot->locate($section); + $settingspage = $adminroot->locate($section, true); } if ($PAGE->user_allowed_editing() && $adminediting != -1) { @@ -71,7 +71,7 @@ if (empty($SITE->fullname)) { echo '
'; echo '
'; - $PAGE->url->hidden_params_out(); + echo $PAGE->url->hidden_params_out(); echo ''; echo ''; @@ -138,7 +138,7 @@ if (empty($SITE->fullname)) { echo ''; echo '
'; - $PAGE->url->hidden_params_out(); + echo $PAGE->url->hidden_params_out(); echo ''; echo ''; print_heading($settingspage->visiblename);