summaryrefslogtreecommitdiff
path: root/app/Controller/Comment.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/Comment.php')
-rw-r--r--app/Controller/Comment.php7
1 files changed, 3 insertions, 4 deletions
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')