make working event filter
This commit is contained in:
parent
0b96c27957
commit
096f91cd74
4 changed files with 42 additions and 3 deletions
|
@ -32,6 +32,20 @@ class webhook extends core
|
|||
|
||||
return $this->json->text;
|
||||
}
|
||||
|
||||
public function getEventFilter()
|
||||
{
|
||||
if(isset($this->json->event) && $this->json->event)
|
||||
{
|
||||
return $this->json->event;
|
||||
}
|
||||
elseif(isset($_GET['event']) && $_GET['event'])
|
||||
{
|
||||
return $_GET['event'];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue