From 8ef341d5890d56d947bd2e01f3ef65adbceb8668 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Tue, 5 Apr 2011 10:29:10 -0700 Subject: [PATCH] QnA - best answers were not getting the 'best' class on their lis (fixed) --- plugins/QnA/QnAPlugin.php | 2 +- plugins/QnA/actions/qnanewquestion.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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; -- 2.39.5