$errormsg = get_string('errorwithsettings', 'admin');
$firsterror = reset($adminroot->errors);
}
- $adminroot = admin_get_root(true); //reload tree
$settingspage = $adminroot->locate($category, true);
}
echo html_writer::end_tag('fieldset');
echo html_writer::end_tag('form');
-echo $OUTPUT->footer();
\ No newline at end of file
+echo $OUTPUT->footer();
if (admin_write_settings($data)) {
$statusmsg = get_string('changessaved');
}
- $adminroot = admin_get_root(true); //reload tree
if (!empty($adminroot->errors)) {
$errormsg = get_string('errorwithsettings', 'admin');
$errormsg = get_string('errorwithsettings', 'admin');
$firsterror = reset($adminroot->errors);
}
- $adminroot = admin_get_root(true); //reload tree
$settingspage = $adminroot->locate($section, true);
}
// now we'll deal with the case that the admin has submitted the form with new settings
if ($data = data_submitted() and confirm_sesskey()) {
$count = admin_write_settings($data);
- $adminroot = admin_get_root(true); //reload tree
}
$newsettings = admin_output_new_settings_by_page($adminroot);