From: Evan Prodromou Date: Mon, 23 May 2011 16:30:34 +0000 (-0400) Subject: render question description in QnA plugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=86a7889012a65c737d80e86848a620397b459b25;p=quix0rs-gnu-social.git render question description in QnA plugin --- 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'); }