From d3b9aabac3af32be582a2922f062d1612ab1db60 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 5 Apr 2011 13:46:44 -0400 Subject: [PATCH] Questions show private lock correctly --- plugins/QnA/QnAPlugin.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ) ); -- 2.39.5