From: Zach Copley Date: Tue, 5 Apr 2011 17:29:10 +0000 (-0700) Subject: QnA - best answers were not getting the 'best' class on their lis (fixed) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8ef341d5890d56d947bd2e01f3ef65adbceb8668;p=quix0rs-gnu-social.git QnA - best answers were not getting the 'best' class on their lis (fixed) --- diff --git a/plugins/QnA/QnAPlugin.php b/plugins/QnA/QnAPlugin.php index fe42975065..16fbc2f063 100644 --- a/plugins/QnA/QnAPlugin.php +++ b/plugins/QnA/QnAPlugin.php @@ -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'; diff --git a/plugins/QnA/actions/qnanewquestion.php b/plugins/QnA/actions/qnanewquestion.php index 3399c5eda8..6610188c47 100644 --- a/plugins/QnA/actions/qnanewquestion.php +++ b/plugins/QnA/actions/qnanewquestion.php @@ -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;