Questions show private lock correctly

This commit is contained in:
Evan Prodromou 2011-04-05 13:46:44 -04:00
parent 4397686c91
commit d3b9aabac3
1 changed files with 5 additions and 1 deletions

View File

@ -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
)
);