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 @@ = $this->text->markdown($comment['comment'], true) ?> -= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file += $this->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 @@ = $this->text->markdown($comment['comment'], true) ?> -= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> += $this->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 @@ = $this->text->markdown($comment['comment'], true) ?> -= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file += $this->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 @@ = $this->text->markdown($comment['comment'], true) ?> -= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file += $this->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 @@
= t('The task #%d have been closed.', $task['id']) ?>
-= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file += $this->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 @@ = $this->text->markdown($task['description'], true) ?> -= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file += $this->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 @@= t('New attachment added "%s"', $file['name']) ?>
-= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> += $this->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 @@ ) ?> -= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> += $this->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 @@ ) ?> -= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> += $this->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 @@= t('The task #%d have been opened.', $task['id']) ?>
-= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> += $this->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 @@