From 54fb29c5eade136d16251d453a335632220caae1 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 21 Dec 2017 10:01:37 +0400 Subject: Correction on the main page --- index.php | 4 ++-- 1 file 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")); } -- cgit v1.2.3