mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 09:19:18 -04:00
Changed and extended the Atom library a little so that the code for creating entries and feeds has been considerably simplified and reduced.
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user