From 9eeded33f68872515954a2fc177fcb47a9273ae9 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 15 Aug 2014 17:23:41 -0700 Subject: Add email notifications --- app/Model/Webhook.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'app/Model/Webhook.php') 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(); -- cgit v1.2.3