diff --git a/include/ajax.tickets.php b/include/ajax.tickets.php index ccfb4b30d51179de1c9721dcc6762f20003325f8..a1e30c43b327c4ac67bc07a956c7f88d2de9fd41 100644 --- a/include/ajax.tickets.php +++ b/include/ajax.tickets.php @@ -671,9 +671,12 @@ class TicketsAjaxAPI extends AjaxController { // Ticket thread variables are assumed to be quotes $response = "<br/><blockquote>$response</blockquote><br/>"; + // Return text if html thread is not enabled if (!$cfg->isHtmlThreadEnabled()) $response = Format::html2text($response, 90); + else + $response = Format::viewableImages($response); // XXX: assuming json format for now. return Format::json_encode(array('response' => $response));