diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-06 21:46:31 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-06 21:46:31 -0500 |
commit | 00e5a4c5b40610ec849567d30f88e3ab8d0720fb (patch) | |
tree | 49138feec30136c9ff432b7d61659e976a27211d /app/Action/Base.php | |
parent | a03e4d4dcb4ebce06671465c9a7bd7e51ba2ef79 (diff) |
Move Github Webhook to external plugin
See: https://github.com/kanboard/plugin-github-webhook
Diffstat (limited to 'app/Action/Base.php')
-rw-r--r-- | app/Action/Base.php | 7 |
1 files changed, 5 insertions, 2 deletions
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; } |