diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-08-15 17:23:41 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-08-15 17:23:41 -0700 |
commit | 9eeded33f68872515954a2fc177fcb47a9273ae9 (patch) | |
tree | f3ef9507e087ca6bf3ce624232da240a8689b051 /app/Model/Webhook.php | |
parent | c539bdc8ab746c5afd48cf87de057dc38d50adac (diff) |
Add email notifications
Diffstat (limited to 'app/Model/Webhook.php')
-rw-r--r-- | app/Model/Webhook.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/Model/Webhook.php b/app/Model/Webhook.php index 679d3edc..872031cc 100644 --- a/app/Model/Webhook.php +++ b/app/Model/Webhook.php @@ -64,11 +64,9 @@ class Webhook extends Base */ public function attachEvents() { - $config = new Config($this->db, $this->event); - - $this->url_task_creation = $config->get('webhooks_url_task_creation'); - $this->url_task_modification = $config->get('webhooks_url_task_modification'); - $this->token = $config->get('webhooks_token'); + $this->url_task_creation = $this->config->get('webhooks_url_task_creation'); + $this->url_task_modification = $this->config->get('webhooks_url_task_modification'); + $this->token = $this->config->get('webhooks_token'); if ($this->url_task_creation) { $this->attachCreateEvents(); |