Adjustments were made on the main page
This commit is contained in:
parent
3c98979336
commit
37d39127d3
@ -65,11 +65,8 @@ if (!empty($deleteid) && confirm_sesskey()) {
|
|||||||
|
|
||||||
/* Updates an existing token */
|
/* Updates an existing token */
|
||||||
if (!empty($hideshowid) && confirm_sesskey()) {
|
if (!empty($hideshowid) && confirm_sesskey()) {
|
||||||
if ($record = tool_managertokens_find_record($hideshowid)) {
|
tool_managertokens_change_status($hideshowid);
|
||||||
$record->enabled = !boolval($record->enabled);
|
redirect($baseurl, new lang_string("changessaved", "moodle"));
|
||||||
tool_managertokens_update_record($record);
|
|
||||||
redirect($baseurl, new lang_string("changessaved", "moodle"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Specifies the title of the page */
|
/* Specifies the title of the page */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user