Questions show private lock correctly
This commit is contained in:
parent
4397686c91
commit
d3b9aabac3
@ -295,9 +295,13 @@ class QnAPlugin extends MicroAppPlugin
|
|||||||
{
|
{
|
||||||
case QnA_Question::OBJECT_TYPE:
|
case QnA_Question::OBJECT_TYPE:
|
||||||
$id = (empty($nli->repeat)) ? $nli->notice->id : $nli->repeat->id;
|
$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(
|
$nli->out->elementStart(
|
||||||
'li', array(
|
'li', array(
|
||||||
'class' => 'hentry notice question',
|
'class' => $class,
|
||||||
'id' => 'notice-' . $id
|
'id' => 'notice-' . $id
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user