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

@@ -27,7 +27,6 @@ class Admin_Users_Controller extends Controller {
public function add() {
$form = user::get_add_form_admin();
rest::http_content_type(rest::JSON);
if($form->validate()) {
$user = user::create($form->add_user->inputs["name"]->value,
$form->add_user->full_name->value, $form->add_user->password->value);
@@ -47,7 +46,6 @@ class Admin_Users_Controller extends Controller {
}
public function delete($id) {
rest::http_content_type(rest::JSON);
$user = ORM::factory("user", $id);
if (!$user->loaded) {
kohana::show_404();
@@ -77,7 +75,6 @@ class Admin_Users_Controller extends Controller {
}
public function edit($id) {
rest::http_content_type(rest::JSON);
$user = ORM::factory("user", $id);
if (!$user->loaded) {
kohana::show_404();