diff options
author | Valentin Popov <info@valentineus.link> | 2017-12-03 18:35:08 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-12-03 18:35:08 +0300 |
commit | 37d39127d38d97a7b85fcba061ef26bb3a9c54bb (patch) | |
tree | 9d170361c1d2ac3c9603f53e034d93a6fa92287d /index.php | |
parent | 3c989793366c47fd0877782267dcfbdca63e8a13 (diff) | |
download | tool_managertokens-37d39127d38d97a7b85fcba061ef26bb3a9c54bb.tar.xz tool_managertokens-37d39127d38d97a7b85fcba061ef26bb3a9c54bb.zip |
Adjustments were made on the main page
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -65,11 +65,8 @@ if (!empty($deleteid) && confirm_sesskey()) { /* Updates an existing token */ if (!empty($hideshowid) && confirm_sesskey()) { - if ($record = tool_managertokens_find_record($hideshowid)) { - $record->enabled = !boolval($record->enabled); - tool_managertokens_update_record($record); - redirect($baseurl, new lang_string("changessaved", "moodle")); - } + tool_managertokens_change_status($hideshowid); + redirect($baseurl, new lang_string("changessaved", "moodle")); } /* Specifies the title of the page */ |