From d235d49dc6214ff916f0f5177d27a0cdd4685ec3 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Oct 2017 09:25:02 +0400 Subject: Refactor the observer for events --- db/events.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/db/events.php b/db/events.php index 809ed43..d061b21 100644 --- a/db/events.php +++ b/db/events.php @@ -22,15 +22,14 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -defined('MOODLE_INTERNAL') || die(); +defined("MOODLE_INTERNAL") || die(); -$config = get_config('local_webhooks'); $observers = array( array( - 'eventname' => '*', - 'callback' => '\local_webhooks\events::handler', - 'includefile' => null, - 'priority' => 200, - 'internal' => true + "eventname" => "*", + "callback" => "\local_webhooks\\events::handler", + "includefile" => null, + "priority" => 200, + "internal" => true ) ); \ No newline at end of file -- cgit v1.2.3