QnA - best answers were not getting the 'best' class on their lis (fixed)

This commit is contained in:
Zach Copley 2011-04-05 10:29:10 -07:00
parent 5bc6a8c614
commit 8ef341d589
2 changed files with 1 additions and 2 deletions

View File

@ -309,7 +309,7 @@ class QnAPlugin extends MicroAppPlugin
$cls = array('hentry', 'notice', 'answer');
$answer = QnA_Answer::staticGet('uri', $notice->uri);
$answer = QnA_Answer::staticGet('uri', $nli->notice->uri);
if (!empty($answer) && !empty($answer->best)) {
$cls[] = 'best';

View File

@ -88,7 +88,6 @@ class QnanewquestionAction extends Action
}
$this->title = $this->trimmed('title');
common_debug("TITLE = " . $this->title);
$this->description = $this->trimmed('description');
return true;