]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
QnA - best answers were not getting the 'best' class on their lis (fixed)
authorZach Copley <zach@status.net>
Tue, 5 Apr 2011 17:29:10 +0000 (10:29 -0700)
committerZach Copley <zach@status.net>
Tue, 5 Apr 2011 17:29:10 +0000 (10:29 -0700)
plugins/QnA/QnAPlugin.php
plugins/QnA/actions/qnanewquestion.php

index fe429750655a795ab7793045297fe3b8f43af272..16fbc2f0635e137c8ccbfa3ae0824b4cb84a1abd 100644 (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';
index 3399c5eda8afee86a76b7fa50cc86225e0ca8d20..6610188c47ecbc350724bdeaffc3bae309e1220f 100644 (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;