Commit 52b34ebf by Scott

Ensure 'state' is set before showing [closed]

Fixes #268.
parent 7be2dd68
......@@ -731,7 +731,7 @@ class qa_html_theme_base
}
// add closed note in title
if (!empty($q_view['closed']))
if (!empty($q_view['closed']['state']))
$this->output(' ['.$q_view['closed']['state'].']');
}
......@@ -1608,7 +1608,7 @@ class qa_html_theme_base
'<div class="qa-q-item-title">',
'<a href="'.$q_item['url'].'">'.$q_item['title'].'</a>',
// add closed note in title
empty($q_item['closed']) ? '' : ' ['.$q_item['closed']['state'].']',
empty($q_item['closed']['state']) ? '' : ' ['.$q_item['closed']['state'].']',
'</div>'
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment