diff options
author | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-22 22:46:17 +0000 |
---|---|---|
committer | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-22 22:46:17 +0000 |
commit | d93d37a10c289d9ffe99e765c45f47209686c893 (patch) | |
tree | a916d23ce814514cf409c2e3215926c9c900e4d1 /modules/comment/controllers | |
parent | 1b76def26fbfc4ef3f0fcb2df210d916b972628b (diff) |
* 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
Diffstat (limited to 'modules/comment/controllers')
-rw-r--r-- | modules/comment/controllers/comments.php | 4 |
1 files changed, 4 insertions, 0 deletions
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; |