Commit 68ac1055 authored by Eugene Venter's avatar Eugene Venter Committed by Richard Mansfield
Browse files

artefact/blog/lib: fixed comment counts

Bug #643642
parent 9c32e324
......@@ -215,6 +215,11 @@ class ArtefactTypeBlog extends ArtefactType {
}
$offset = isset($options['offset']) ? intval($options['offset']) : 0;
if (!isset($options['countcomments'])) {
// Count comments if this is a view
$options['countcomments'] = (!empty($options['viewid']));
}
$posts = ArtefactTypeBlogpost::get_posts($this->id, $limit, $offset, $options);
$template = 'artefact:blog:viewposts.tpl';
......
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