Skip to content

Commit

Permalink
admin settings/blocklib: MDL-19108 Error when saving any admin settings
Browse files Browse the repository at this point in the history
Regression from MDL-19010
  • Loading branch information
tjhunt committed May 8, 2009
1 parent 31bb8f3 commit ac9e220
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
$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) {
Expand All @@ -71,7 +71,7 @@

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.'" />';

Expand Down Expand Up @@ -138,7 +138,7 @@

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);
Expand Down

0 comments on commit ac9e220

Please sign in to comment.