aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-11-15 09:46:09 +0300
committerValentin Popov <info@valentineus.link>2017-11-15 09:46:09 +0300
commit97296b795a2346c1ee09fcf7f4abacc934af43ba (patch)
tree5e32236c4cef516a4aca862d6cdccc7668be5bc5 /classes
parent0fcec2738d21a06cdfad967847997166b4785c79 (diff)
downloadlocal_webhooks-97296b795a2346c1ee09fcf7f4abacc934af43ba.tar.xz
local_webhooks-97296b795a2346c1ee09fcf7f4abacc934af43ba.zip
Updated the event handler
Diffstat (limited to 'classes')
-rw-r--r--classes/handler.php8
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);
}
/**