From 9460e08da87b9978e3e078e1ebf4c33705e060f3 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 7 Jan 2009 07:42:38 +0000 Subject: Create a new "fragment" page type to use when we're not sending back a fully themed page. --- modules/comment/controllers/comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/controllers/comments.php') diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php index e19a2ec1..bb8aeb55 100644 --- a/modules/comment/controllers/comments.php +++ b/modules/comment/controllers/comments.php @@ -89,7 +89,7 @@ class Comments_Controller extends REST_Controller { array("result" => "success", "data" => $comment->as_array())); } else { - $view = new View("comment.html"); + $view = new Theme_View("comment.html", "fragment"); $view->comment = $comment; print $view; } -- cgit v1.2.3