mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-24 13:29:10 -04:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user