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

This commit is contained in:
Bharat Mediratta
2008-12-29 22:41:53 +00:00
parent 29c925a3cc
commit 6ab195854d
9 changed files with 0 additions and 18 deletions

View File

@@ -26,7 +26,6 @@ class Admin_Groups_Controller extends Controller {
}
public function add() {
rest::http_content_type(rest::JSON);
$form = group::get_add_form_admin();
if($form->validate()) {
$group = group::create($form->add_group->inputs["name"]->value);
@@ -45,7 +44,6 @@ class Admin_Groups_Controller extends Controller {
}
public function delete($id) {
rest::http_content_type(rest::JSON);
$group = ORM::factory("group", $id);
if (!$group->loaded) {
kohana::show_404();
@@ -75,7 +73,6 @@ class Admin_Groups_Controller extends Controller {
}
public function edit($id) {
rest::http_content_type(rest::JSON);
$group = ORM::factory("group", $id);
if (!$group->loaded) {
kohana::show_404();