From 7485740d9741021b2016df80b225ae4d82b892d0 Mon Sep 17 00:00:00 2001 From: Jozef Selesi Date: Sun, 23 Nov 2008 12:41:41 +0000 Subject: Changed and extended the Atom library a little so that the code for creating entries and feeds has been considerably simplified and reduced. --- modules/comment/controllers/comments.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/comment/controllers/comments.php') 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")); -- cgit v1.2.3