diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-29 22:41:53 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-29 22:41:53 +0000 |
commit | 6ab195854ddee124b24b880ed96bb0db5fdc7805 (patch) | |
tree | 02a91acb7ddaa13eee3730bc8a9366fc94dc9c9c /modules/comment/controllers/comments.php | |
parent | 29c925a3cc30a5b1fc66c658e4be85914a6b515c (diff) |
Remove rest::JSON content type; it's causing lots of problems and it doesn't directly help since text/html works just as well for our JSON communications
Diffstat (limited to 'modules/comment/controllers/comments.php')
-rw-r--r-- | modules/comment/controllers/comments.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php index cb2ebb01..e4eff6a6 100644 --- a/modules/comment/controllers/comments.php +++ b/modules/comment/controllers/comments.php @@ -35,7 +35,6 @@ class Comments_Controller extends REST_Controller { switch (rest::output_format()) { case "json": - rest::http_content_type(rest::JSON); foreach ($comments as $comment) { $data[] = $comment->as_array(); } @@ -55,7 +54,6 @@ class Comments_Controller extends REST_Controller { * @see REST_Controller::_create($resource) */ public function _create($comment) { - rest::http_content_type(rest::JSON); $item = ORM::factory("item", $this->input->post("item_id")); access::required("view", $item); @@ -100,7 +98,6 @@ class Comments_Controller extends REST_Controller { * @see REST_Controller::_update($resource) */ public function _update($comment) { - rest::http_content_type(rest::JSON); $form = comment::get_edit_form($comment); if ($form->validate()) { @@ -125,7 +122,6 @@ class Comments_Controller extends REST_Controller { * @see REST_Controller::_delete($resource) */ public function _delete($comment) { - rest::http_content_type(rest::JSON); $comment->delete(); print json_encode(array("result" => "success")); |