project->getbyId($project_id); $event['event_name'] = $event_name; $event['author'] = $this->user->getFullname($this->session['user']); $payload = array( 'text' => '*['.$project['name'].']* '.str_replace('"', '"', $this->projectActivity->getTitle($event)), 'username' => 'Kanboard', 'icon_url' => 'http://kanboard.net/assets/img/favicon.png', ); if ($this->config->get('application_url')) { $payload['text'] .= ' - <'.$this->config->get('application_url'); $payload['text'] .= $this->helper->u('task', 'show', array('task_id' => $task_id, 'project_id' => $project_id)); $payload['text'] .= '|'.t('view the task on Kanboard').'>'; } $this->httpClient->post($this->config->get('integration_slack_webhook_url'), $payload); } }