summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-12-21 09:01:37 +0300
committerValentin Popov <info@valentineus.link>2017-12-21 09:01:37 +0300
commit54fb29c5eade136d16251d453a335632220caae1 (patch)
treec6abdd85654a24dee4cb31b71ad89f6ac2c5d6e4
parent78e9e435cc7c505883abe345fc2f033a0a69368f (diff)
downloadlocal_webhooks-54fb29c5eade136d16251d453a335632220caae1.tar.xz
local_webhooks-54fb29c5eade136d16251d453a335632220caae1.zip
Correction on the main page
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 024c54f..a4023b6 100644
--- a/index.php
+++ b/index.php
@@ -46,7 +46,7 @@ $context = context_system::instance();
/* Delete the service */
if (!empty($deleteid) && confirm_sesskey()) {
- local_webhooks_remove_record($deleteid);
+ local_webhooks_delete_record($deleteid);
redirect($PAGE->url, new lang_string("deleted", "moodle"));
}
@@ -58,7 +58,7 @@ if (!empty($hideshowid) && confirm_sesskey()) {
/* Deletes all data */
if (boolval($deleteall) && confirm_sesskey()) {
- local_webhooks_remove_list_records();
+ local_webhooks_delete_all_records();
redirect($PAGE->url, new lang_string("deleted", "moodle"));
}