diff --git a/app/Action/TaskEmail.php b/app/Action/TaskEmail.php index 559c2c0bf..5a8b5518e 100644 --- a/app/Action/TaskEmail.php +++ b/app/Action/TaskEmail.php @@ -88,7 +88,6 @@ class TaskEmail extends Base $this->getParam('subject'), $this->template->render('notification/task_create', array( 'task' => $data['task'], - 'application_url' => $this->configModel->get('application_url'), )) ); diff --git a/app/Action/TaskEmailNoActivity.php b/app/Action/TaskEmailNoActivity.php index cac4281ef..1aaecf11d 100644 --- a/app/Action/TaskEmailNoActivity.php +++ b/app/Action/TaskEmailNoActivity.php @@ -116,7 +116,7 @@ class TaskEmailNoActivity extends Base $user['email'], $user['name'] ?: $user['username'], $this->getParam('subject'), - $this->template->render('notification/task_create', array('task' => $task, 'application_url' => $this->configModel->get('application_url'))) + $this->template->render('notification/task_create', array('task' => $task)) ); return true; diff --git a/app/Notification/MailNotification.php b/app/Notification/MailNotification.php index 9e0428200..90ca43247 100644 --- a/app/Notification/MailNotification.php +++ b/app/Notification/MailNotification.php @@ -62,10 +62,7 @@ class MailNotification extends Base implements NotificationInterface */ public function getMailContent($event_name, array $event_data) { - return $this->template->render( - 'notification/'.str_replace('.', '_', $event_name), - $event_data + array('application_url' => $this->configModel->get('application_url')) - ); + return $this->template->render('notification/'.str_replace('.', '_', $event_name), $event_data); } /** diff --git a/app/Template/notification/comment_create.php b/app/Template/notification/comment_create.php index 41262a7e6..8b8251c63 100644 --- a/app/Template/notification/comment_create.php +++ b/app/Template/notification/comment_create.php @@ -8,4 +8,4 @@ text->markdown($comment['comment'], true) ?> -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/comment_delete.php b/app/Template/notification/comment_delete.php index 14babbd9f..d49f10b82 100644 --- a/app/Template/notification/comment_delete.php +++ b/app/Template/notification/comment_delete.php @@ -4,4 +4,4 @@ text->markdown($comment['comment'], true) ?> -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> +render('notification/footer', array('task' => $task)) ?> diff --git a/app/Template/notification/comment_update.php b/app/Template/notification/comment_update.php index f1cffae61..c22e8f1a1 100644 --- a/app/Template/notification/comment_update.php +++ b/app/Template/notification/comment_update.php @@ -4,4 +4,4 @@ text->markdown($comment['comment'], true) ?> -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/comment_user_mention.php b/app/Template/notification/comment_user_mention.php index 0990e7ab9..a3f387beb 100644 --- a/app/Template/notification/comment_user_mention.php +++ b/app/Template/notification/comment_user_mention.php @@ -4,4 +4,4 @@ text->markdown($comment['comment'], true) ?> -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/footer.php b/app/Template/notification/footer.php index da437eea4..b057a60cb 100644 --- a/app/Template/notification/footer.php +++ b/app/Template/notification/footer.php @@ -1,7 +1,7 @@
Kanboard - +app->config('application_url') != ''): ?> - url->absoluteLink(t('view the task on Kanboard'), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> - url->absoluteLink(t('view the board on Kanboard'), 'BoardViewController', 'show', array('project_id' => $task['project_id'])) ?> diff --git a/app/Template/notification/subtask_create.php b/app/Template/notification/subtask_create.php index f6f8ba13c..23df36662 100644 --- a/app/Template/notification/subtask_create.php +++ b/app/Template/notification/subtask_create.php @@ -14,4 +14,4 @@ -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/subtask_delete.php b/app/Template/notification/subtask_delete.php index 8c5f262c3..24562eba6 100644 --- a/app/Template/notification/subtask_delete.php +++ b/app/Template/notification/subtask_delete.php @@ -8,4 +8,4 @@
  • text->e($subtask['name'] ?: $subtask['username'] ?: '?') ?>
  • -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> +render('notification/footer', array('task' => $task)) ?> diff --git a/app/Template/notification/subtask_update.php b/app/Template/notification/subtask_update.php index e6785f2c3..0c235942c 100644 --- a/app/Template/notification/subtask_update.php +++ b/app/Template/notification/subtask_update.php @@ -18,4 +18,4 @@ -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/task_assignee_change.php b/app/Template/notification/task_assignee_change.php index f075fdbfb..608d8d722 100644 --- a/app/Template/notification/task_assignee_change.php +++ b/app/Template/notification/task_assignee_change.php @@ -17,4 +17,4 @@ text->markdown($task['description'], true) ?: t('There is no description.') ?> -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/task_close.php b/app/Template/notification/task_close.php index 4202e092a..b5763c75c 100644 --- a/app/Template/notification/task_close.php +++ b/app/Template/notification/task_close.php @@ -2,4 +2,4 @@

    -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/task_create.php b/app/Template/notification/task_create.php index 3439e357e..6e80b26a4 100644 --- a/app/Template/notification/task_create.php +++ b/app/Template/notification/task_create.php @@ -40,4 +40,4 @@ text->markdown($task['description'], true) ?> -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/task_file_create.php b/app/Template/notification/task_file_create.php index c19f72794..c552546ce 100644 --- a/app/Template/notification/task_file_create.php +++ b/app/Template/notification/task_file_create.php @@ -2,4 +2,4 @@

    -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> +render('notification/footer', array('task' => $task)) ?> diff --git a/app/Template/notification/task_internal_link_create_update.php b/app/Template/notification/task_internal_link_create_update.php index b66a1531f..a2333703c 100644 --- a/app/Template/notification/task_internal_link_create_update.php +++ b/app/Template/notification/task_internal_link_create_update.php @@ -8,4 +8,4 @@ ) ?>

    -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> +render('notification/footer', array('task' => $task)) ?> diff --git a/app/Template/notification/task_internal_link_delete.php b/app/Template/notification/task_internal_link_delete.php index d556fb207..c366001c8 100644 --- a/app/Template/notification/task_internal_link_delete.php +++ b/app/Template/notification/task_internal_link_delete.php @@ -8,4 +8,4 @@ ) ?>

    -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> +render('notification/footer', array('task' => $task)) ?> diff --git a/app/Template/notification/task_move_column.php b/app/Template/notification/task_move_column.php index 263adebf7..7159cb06a 100644 --- a/app/Template/notification/task_move_column.php +++ b/app/Template/notification/task_move_column.php @@ -8,4 +8,4 @@
  • text->e($task['position']) ?>
  • -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/task_move_position.php b/app/Template/notification/task_move_position.php index 263adebf7..7159cb06a 100644 --- a/app/Template/notification/task_move_position.php +++ b/app/Template/notification/task_move_position.php @@ -8,4 +8,4 @@
  • text->e($task['position']) ?>
  • -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/task_move_swimlane.php b/app/Template/notification/task_move_swimlane.php index cbbd620d0..cdf165590 100644 --- a/app/Template/notification/task_move_swimlane.php +++ b/app/Template/notification/task_move_swimlane.php @@ -16,4 +16,4 @@
  • text->e($task['position']) ?>
  • -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/task_open.php b/app/Template/notification/task_open.php index 2c85e9f73..5bd0d1a4f 100644 --- a/app/Template/notification/task_open.php +++ b/app/Template/notification/task_open.php @@ -2,4 +2,4 @@

    -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> +render('notification/footer', array('task' => $task)) ?> diff --git a/app/Template/notification/task_update.php b/app/Template/notification/task_update.php index 9abe8e0ab..8d39b1521 100644 --- a/app/Template/notification/task_update.php +++ b/app/Template/notification/task_update.php @@ -1,4 +1,4 @@

    text->e($task['title']) ?> (#)

    render('task/changes', array('changes' => $changes, 'task' => $task, 'public' => true)) ?> -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/task_user_mention.php b/app/Template/notification/task_user_mention.php index 71ad348be..dfd6e723f 100644 --- a/app/Template/notification/task_user_mention.php +++ b/app/Template/notification/task_user_mention.php @@ -4,4 +4,4 @@

    text->markdown($task['description'], true) ?> -render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/task_mail/email.php b/app/Template/task_mail/email.php index 51f881787..70db572ee 100644 --- a/app/Template/task_mail/email.php +++ b/app/Template/task_mail/email.php @@ -43,4 +43,4 @@ text->markdown($task['description'], true) ?> -render('notification/footer', array('task' => $task, 'application_url' => $this->app->config('application_url'))) ?> \ No newline at end of file +render('notification/footer', array('task' => $task)) ?> \ No newline at end of file