mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
admin settings/blocklib: MDL-19108 Error when saving any admin settings
Regression from MDL-19010
This commit is contained in:
parent
31bb8f3e23
commit
ac9e220734
1 changed files with 3 additions and 3 deletions
|
@ -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 '<form action="settings.php" method="post" id="adminsettings">';
|
||||
echo '<div class="settingsform clearfix">';
|
||||
$PAGE->url->hidden_params_out();
|
||||
echo $PAGE->url->hidden_params_out();
|
||||
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
|
||||
echo '<input type="hidden" name="return" value="'.$return.'" />';
|
||||
|
||||
|
@ -138,7 +138,7 @@ if (empty($SITE->fullname)) {
|
|||
|
||||
echo '<form action="settings.php" method="post" id="adminsettings">';
|
||||
echo '<div class="settingsform clearfix">';
|
||||
$PAGE->url->hidden_params_out();
|
||||
echo $PAGE->url->hidden_params_out();
|
||||
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
|
||||
echo '<input type="hidden" name="return" value="'.$return.'" />';
|
||||
print_heading($settingspage->visiblename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue