From 00e5a4c5b40610ec849567d30f88e3ab8d0720fb Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 6 Jan 2016 21:46:31 -0500 Subject: Move Github Webhook to external plugin See: https://github.com/kanboard/plugin-github-webhook --- app/Action/Base.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/Action/Base.php') diff --git a/app/Action/Base.php b/app/Action/Base.php index febd6cfc..1298aec2 100644 --- a/app/Action/Base.php +++ b/app/Action/Base.php @@ -265,9 +265,12 @@ abstract class Base extends \Kanboard\Core\Base * @param string $event * @param string $description */ - public function addEvent($event, $description) + public function addEvent($event, $description = '') { - $this->eventManager->register($event, $description); + if ($description !== '') { + $this->eventManager->register($event, $description); + } + $this->compatibleEvents[] = $event; return $this; } -- cgit v1.2.3