QnA - truncate long question titles in notice content

This commit is contained in:
Zach Copley
2011-04-04 17:04:13 -07:00
parent 7fb963bb42
commit 92156317b6
3 changed files with 13 additions and 10 deletions

View File

@@ -356,7 +356,7 @@ class QnAPlugin extends MicroAppPlugin
* @param Notice $notice
* @param HTMLOutputter $out
*/
function showNotice($notice, $out)
{
switch ($notice->object_type) {
@@ -415,7 +415,7 @@ class QnAPlugin extends MicroAppPlugin
function showNoticeAnswer($notice, $out)
{
$user = common_current_user();
$answer = QnA_Answer::getByNotice($notice);
$question = $answer->getQuestion();