mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-19 13:25:36 -04:00
Fix the way we dump out comment in _show().
This commit is contained in:
@@ -86,7 +86,7 @@ class Comments_Controller extends REST_Controller {
|
||||
*/
|
||||
public function _show($comment) {
|
||||
if (rest::output_format() == "json") {
|
||||
print json_encode(array("result" => "success", "data" => $comment));
|
||||
print json_encode(array("result" => "success", "data" => $comment->as_array()));
|
||||
} else {
|
||||
$view = new View("comment.html");
|
||||
$view->comment = $comment;
|
||||
|
||||
Reference in New Issue
Block a user