From: Evan Prodromou Date: Tue, 5 Apr 2011 17:46:44 +0000 (-0400) Subject: Questions show private lock correctly X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d3b9aabac3af32be582a2922f062d1612ab1db60;p=quix0rs-gnu-social.git Questions show private lock correctly --- diff --git a/plugins/QnA/QnAPlugin.php b/plugins/QnA/QnAPlugin.php index fe42975065..0b9b81645c 100644 --- a/plugins/QnA/QnAPlugin.php +++ b/plugins/QnA/QnAPlugin.php @@ -295,9 +295,13 @@ class QnAPlugin extends MicroAppPlugin { case QnA_Question::OBJECT_TYPE: $id = (empty($nli->repeat)) ? $nli->notice->id : $nli->repeat->id; + $class = 'hentry notice question'; + if ($nli->notice->scope != 0 && $nli->notice->scope != 1) { + $class .= ' limited-scope'; + } $nli->out->elementStart( 'li', array( - 'class' => 'hentry notice question', + 'class' => $class, 'id' => 'notice-' . $id ) );