summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-08-19 18:00:02 -0700
committerFrédéric Guillot <fred@kanboard.net>2014-08-19 18:00:02 -0700
commitf8071e7d4adf9d5fb1f255056aef98d5c3600c17 (patch)
tree5cc4cabda154f71c972427d73a1f397c3fb97e85 /app
parent0f825844d442076bb6bbabe0035d09cbd02c1a87 (diff)
Remove useless code
Diffstat (limited to 'app')
-rw-r--r--app/Model/Webhook.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/app/Model/Webhook.php b/app/Model/Webhook.php
index 872031cc..e03bdcb4 100644
--- a/app/Model/Webhook.php
+++ b/app/Model/Webhook.php
@@ -104,15 +104,7 @@ class Webhook extends Base
*/
public function attachCreateEvents()
{
- $events = array(
- Task::EVENT_CREATE,
- );
-
- $listener = new WebhookListener($this->url_task_creation, $this);
-
- foreach ($events as $event_name) {
- $this->event->attach($event_name, $listener);
- }
+ $this->event->attach(Task::EVENT_CREATE, new WebhookListener($this->url_task_creation, $this));
}
/**