diff options
author | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-23 12:41:41 +0000 |
---|---|---|
committer | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-23 12:41:41 +0000 |
commit | 7485740d9741021b2016df80b225ae4d82b892d0 (patch) | |
tree | 9363326a831141fde66c31665af4fb2bacdec3db /modules/comment/controllers | |
parent | bdbb115296f4002186ee3a99fadc13988dd1509f (diff) |
Changed and extended the Atom library a little so that the code for creating entries and feeds has been considerably simplified and reduced.
Diffstat (limited to 'modules/comment/controllers')
-rw-r--r-- | modules/comment/controllers/comments.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php index 989ad177..8b2e5155 100644 --- a/modules/comment/controllers/comments.php +++ b/modules/comment/controllers/comments.php @@ -62,7 +62,8 @@ class Comments_Controller extends REST_Controller { * @see Rest_Controller::_show($resource) */ public function _show($comment) { - switch (rest::output_format()) { + $output_format = rest::output_format(); + switch ($output_format) { case "xml": rest::http_content_type(rest::XML); print xml::to_xml($comment->as_array(), array("comment")); |