From d93d37a10c289d9ffe99e765c45f47209686c893 Mon Sep 17 00:00:00 2001 From: Jozef Selesi Date: Sat, 22 Nov 2008 22:46:17 +0000 Subject: * Fixed a bug in the Atom library where child elements were not added to their proper parents. * Added valid Atom 1.0 feeds for comments. They can be seen at: http://gallery.example.com/index.php/comments?item_id={photo_id}&_format=atom --- modules/comment/controllers/comments.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/comment/controllers/comments.php') diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php index e4825a78..3838f7f0 100644 --- a/modules/comment/controllers/comments.php +++ b/modules/comment/controllers/comments.php @@ -74,6 +74,10 @@ class Comments_Controller extends REST_Controller { print json_encode($comment->as_array()); break; + case "atom": + rest::http_content_type(rest::ATOM); + break; + default: $v = new View("comment.$output_format"); $v->comment = $comment; -- cgit v1.2.3