]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
render question description in QnA plugin
authorEvan Prodromou <evan@status.net>
Mon, 23 May 2011 16:30:34 +0000 (12:30 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 23 May 2011 16:30:34 +0000 (12:30 -0400)
plugins/QnA/classes/QnA_Answer.php
plugins/QnA/classes/QnA_Question.php

index d200c7b45a0fcc24b853e2594bdcf1e3ef8f229f..1a415f4af47f0cf142daa08ea07924d0e5f32c87 100644 (file)
@@ -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)) {
index 77d5a57fb1a5f59cb324a38457abca517bef0bb4..e2430087c00c1a99991a6e74e1be814a7f08bac3 100644 (file)
@@ -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');
         }