* 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
This commit is contained in:
Jozef Selesi
2008-11-22 22:46:17 +00:00
parent 1b76def26f
commit d93d37a10c
3 changed files with 66 additions and 1 deletions
+4
View File
@@ -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;