diff options
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/controllers/comment.php | 4 | ||||
-rw-r--r-- | modules/comment/controllers/comments.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/comment/controllers/comment.php b/modules/comment/controllers/comment.php index a8f52443..4c04e007 100644 --- a/modules/comment/controllers/comment.php +++ b/modules/comment/controllers/comment.php @@ -26,7 +26,7 @@ class Comment_Controller extends REST_Controller { */ public function _form($comment) { $form = comment::get_edit_form($comment); - print $form->render("form.html"); + print $form; } /** @@ -58,7 +58,7 @@ class Comment_Controller extends REST_Controller { $comment->save(); return; } - print $form->render(); + print $form; } /** diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php index a0233a0b..60ab9b5d 100644 --- a/modules/comment/controllers/comments.php +++ b/modules/comment/controllers/comments.php @@ -26,7 +26,7 @@ class Comments_Controller extends REST_Controller { */ public function _form($item) { $form = comment::get_add_form($item); - print $form->render("form.html"); + print $form; } /** @@ -63,7 +63,7 @@ class Comments_Controller extends REST_Controller { header("HTTP/1.1 201 Created"); header("Location: " . url::site("comment/{$comment->id}")); } - print $form->render("form.html"); + print $form; } /** |