mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-02 13:10:48 -04:00
* 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user