diff options
author | Valentin Popov <info@valentineus.link> | 2017-10-27 07:51:27 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-10-27 07:51:27 +0300 |
commit | 1160a52753cfc027f970cad9d889f0a5a81c1074 (patch) | |
tree | 3cd85324fb3366c2472b2e21e5928c36a054cf88 | |
parent | af6ac9fb22deae77148ae82663131ae3b1d251a6 (diff) | |
download | local_webhooks-1160a52753cfc027f970cad9d889f0a5a81c1074.tar.xz local_webhooks-1160a52753cfc027f970cad9d889f0a5a81c1074.zip |
Rename the handler class
-rw-r--r-- | classes/handler.php (renamed from classes/events.php) | 4 | ||||
-rw-r--r-- | db/events.php | 2 |
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 |