summaryrefslogtreecommitdiff
path: root/modules/comment/controllers
diff options
context:
space:
mode:
authorJozef Selesi <jozefs@users.sourceforge.net>2008-11-22 22:46:17 +0000
committerJozef Selesi <jozefs@users.sourceforge.net>2008-11-22 22:46:17 +0000
commitd93d37a10c289d9ffe99e765c45f47209686c893 (patch)
treea916d23ce814514cf409c2e3215926c9c900e4d1 /modules/comment/controllers
parent1b76def26fbfc4ef3f0fcb2df210d916b972628b (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.php4
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;