From f91f3214c12e315afd8984653ea2d9db8408793d Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 8 Mar 2016 22:02:42 -0500 Subject: Always display project name and task title in task views --- app/Controller/Comment.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'app/Controller/Comment.php') diff --git a/app/Controller/Comment.php b/app/Controller/Comment.php index da3213e0..ff7ec305 100644 --- a/app/Controller/Comment.php +++ b/app/Controller/Comment.php @@ -47,11 +47,10 @@ class Comment extends Base ); } - $this->response->html($this->helper->layout->task('comment/create', array( + $this->response->html($this->template->render('comment/create', array( 'values' => $values, 'errors' => $errors, 'task' => $task, - 'title' => t('Add a comment'), ))); } @@ -90,7 +89,7 @@ class Comment extends Base $task = $this->getTask(); $comment = $this->getComment(); - $this->response->html($this->helper->layout->task('comment/edit', array( + $this->response->html($this->template->render('comment/edit', array( 'values' => empty($values) ? $comment : $values, 'errors' => $errors, 'comment' => $comment, @@ -135,7 +134,7 @@ class Comment extends Base $task = $this->getTask(); $comment = $this->getComment(); - $this->response->html($this->helper->layout->task('comment/remove', array( + $this->response->html($this->template->render('comment/remove', array( 'comment' => $comment, 'task' => $task, 'title' => t('Remove a comment') -- cgit v1.2.3