From 6b1fa6217355a8458a84791ce02e2bb0067b1da2 Mon Sep 17 00:00:00 2001 From: Felix Rabinovich Date: Fri, 26 Dec 2008 20:08:15 +0000 Subject: Added content type to JSON output functions --- core/controllers/photos.php | 1 + 1 file changed, 1 insertion(+) (limited to 'core/controllers/photos.php') diff --git a/core/controllers/photos.php b/core/controllers/photos.php index 13185283..9ceaa5c9 100644 --- a/core/controllers/photos.php +++ b/core/controllers/photos.php @@ -45,6 +45,7 @@ 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