aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/handler.php (renamed from classes/events.php)4
-rw-r--r--db/events.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/classes/events.php b/classes/handler.php
index 419ad50..5bc5473 100644
--- a/classes/events.php
+++ b/classes/handler.php
@@ -36,13 +36,13 @@ use curl;
* @copyright 2017 "Valentin Popov" <info@valentineus.link>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-class events {
+class handler {
/**
* External handler.
*
* @param object $event
*/
- public static function handler($event) {
+ public static function events($event) {
$enable = get_config("local_webhooks", "enable");
if (boolval($enable)) {
diff --git a/db/events.php b/db/events.php
index d061b21..a5d585e 100644
--- a/db/events.php
+++ b/db/events.php
@@ -27,7 +27,7 @@ defined("MOODLE_INTERNAL") || die();
$observers = array(
array(
"eventname" => "*",
- "callback" => "\local_webhooks\\events::handler",
+ "callback" => "\local_webhooks\\handler::events",
"includefile" => null,
"priority" => 200,
"internal" => true