From 6ab195854ddee124b24b880ed96bb0db5fdc7805 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 29 Dec 2008 22:41:53 +0000 Subject: 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 --- core/controllers/albums.php | 2 -- core/controllers/photos.php | 1 - 2 files changed, 3 deletions(-) (limited to 'core') diff --git a/core/controllers/albums.php b/core/controllers/albums.php index 2bb535e5..668e868a 100644 --- a/core/controllers/albums.php +++ b/core/controllers/albums.php @@ -70,7 +70,6 @@ class Albums_Controller extends Items_Controller { private function _create_album($album) { access::required("edit", $album); - rest::http_content_type(rest::JSON); $form = album::get_add_form($album); if ($form->validate()) { $new_album = album::create( @@ -132,7 +131,6 @@ class Albums_Controller extends Items_Controller { public function _update($album) { access::required("edit", $album); - rest::http_content_type(rest::JSON); $form = album::get_edit_form($album); if ($form->validate()) { // @todo implement changing the name. This is not trivial, we have diff --git a/core/controllers/photos.php b/core/controllers/photos.php index 9ceaa5c9..13185283 100644 --- a/core/controllers/photos.php +++ b/core/controllers/photos.php @@ -45,7 +45,6 @@ class Photos_Controller extends Items_Controller { public function _update($photo) { access::required("edit", $photo); - rest::http_content_type(rest::JSON); $form = photo::get_edit_form($photo); if ($form->validate()) { // @todo implement changing the name. This is not trivial, we have -- cgit v1.2.3