From 97296b795a2346c1ee09fcf7f4abacc934af43ba Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 15 Nov 2017 10:46:09 +0400 Subject: Updated the event handler --- classes/handler.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'classes') 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); } /** -- cgit v1.2.3