﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,difficulty
4437,Error in elgg/views/default/object/elements/summary.php,pnovo,,"As it is specified this view receives (among other $vars):

{{{
@uses $vars['tags']      HTML for the tags (optional)
}}}

And it is used as follows:

{{{
$tags = elgg_extract('tags', $vars, '');
if ($tags !== false) {
	$tags = elgg_view('output/tags', array('tags' => $entity->tags));
}
[...]
echo $tags;
}}}

I think that has to be an error. If 'tags code' is received, it is ignored and replaced. If it is not received, nothing is shown. I suppose the intention was to replace 'blank tags code' by the tags of the entity. Furthermore I think it is not a documentation error, because some core plugins use it as described. For example:


{{{
$tags = elgg_view('output/tags', array('tags' => $page->tags));
[...]
$params = array(
		'entity' => $page,
		'metadata' => $metadata,
		'subtitle' => $subtitle,
		'tags' => $tags,
		'content' => $excerpt,
	);
	$params = $params + $vars;
	$list_body = elgg_view('object/elements/summary', $params);
}}}
",Defect,closed,normal,Elgg 1.8.6,Core,1.8.3,minor,fixed,,brett@…,
