diff options
author | Valentin Popov <info@valentineus.link> | 2017-11-15 09:46:09 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-11-15 09:46:09 +0300 |
commit | 97296b795a2346c1ee09fcf7f4abacc934af43ba (patch) | |
tree | 5e32236c4cef516a4aca862d6cdccc7668be5bc5 /classes/handler.php | |
parent | 0fcec2738d21a06cdfad967847997166b4785c79 (diff) | |
download | local_webhooks-97296b795a2346c1ee09fcf7f4abacc934af43ba.tar.xz local_webhooks-97296b795a2346c1ee09fcf7f4abacc934af43ba.zip |
Updated the event handler
Diffstat (limited to 'classes/handler.php')
-rw-r--r-- | classes/handler.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/classes/handler.php b/classes/handler.php index b1ae2dc..a9fddf7 100644 --- a/classes/handler.php +++ b/classes/handler.php @@ -41,12 +41,8 @@ class handler { * @param object $event */ public static function events($event) { - $enable = get_config("local_webhooks", "enable"); - - if (boolval($enable)) { - $data = $event->get_data(); - self::transmitter($data); - } + $data = $event->get_data(); + self::transmitter($data); } /** |