diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/handler.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/handler.php b/classes/handler.php index ac933a9..8e20db8 100644 --- a/classes/handler.php +++ b/classes/handler.php @@ -71,6 +71,8 @@ class handler { * @param object $callback */ private static function handler_callback($data, $callback) { + global $CFG; + if (boolval($callback->enable)) { $events = array(); if (!empty($callback->events)) { @@ -78,6 +80,9 @@ class handler { } if (!empty($events[$data["eventname"]])) { + $urlparse = parse_url($CFG->wwwroot); + $data["host"] = $urlparse['host']; + if (!empty($callback->token)) { $data["token"] = $callback->token; } |