From 86a7889012a65c737d80e86848a620397b459b25 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 23 May 2011 12:30:34 -0400 Subject: [PATCH] render question description in QnA plugin --- plugins/QnA/classes/QnA_Answer.php | 2 +- plugins/QnA/classes/QnA_Question.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/QnA/classes/QnA_Answer.php b/plugins/QnA/classes/QnA_Answer.php index d200c7b45a..1a415f4af4 100644 --- a/plugins/QnA/classes/QnA_Answer.php +++ b/plugins/QnA/classes/QnA_Answer.php @@ -219,7 +219,7 @@ class QnA_Answer extends Managed_DataObject $out->elementStart('p', array('class' => implode(' ', $cls))); $out->elementStart('span', 'answer-content'); - $out->raw(QnAPlugin::shorten($answer->content, $notice)); + $out->raw(common_render_text($answer->content)); $out->elementEnd('span'); if (!empty($answer->revisions)) { diff --git a/plugins/QnA/classes/QnA_Question.php b/plugins/QnA/classes/QnA_Question.php index 77d5a57fb1..e2430087c0 100644 --- a/plugins/QnA/classes/QnA_Question.php +++ b/plugins/QnA/classes/QnA_Question.php @@ -227,7 +227,7 @@ class QnA_Question extends Managed_DataObject if (!empty($question->description)) { $out->elementStart('span', 'question-description'); - $out->raw(QnAPlugin::shorten($question->description, $notice)); + $out->raw(common_render_text($question->description)); $out->elementEnd('span'); } -- 2.39.5