diff options
| author | Felix Rabinovich <virshu@users.sourceforge.net> | 2008-12-26 20:08:15 +0000 |
|---|---|---|
| committer | Felix Rabinovich <virshu@users.sourceforge.net> | 2008-12-26 20:08:15 +0000 |
| commit | 6b1fa6217355a8458a84791ce02e2bb0067b1da2 (patch) | |
| tree | c1062d228d1d55b9ddea74b2564c2b9bfc7579ea /core/controllers/photos.php | |
| parent | 7fdde469d3af72307efb41048fadd7a25f4ae576 (diff) | |
Added content type to JSON output functions
Diffstat (limited to 'core/controllers/photos.php')
| -rw-r--r-- | core/controllers/photos.php | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
