tag display with item
This commit is contained in:
parent
3b33c0d075
commit
790c4a4e1a
2 changed files with 12 additions and 1 deletions
|
@ -787,6 +787,15 @@ function prepare_body($item,$attach = false) {
|
|||
$s .= '<div class="clear"></div></div>';
|
||||
}
|
||||
|
||||
$arr = explode(',',$item['tag']);
|
||||
if(count($arr)) {
|
||||
$s .= '<div class="body-tag">';
|
||||
foreach($arr as $r) {
|
||||
$s .= bbcode($r) . ' ';
|
||||
}
|
||||
$s .= '</div>';
|
||||
}
|
||||
|
||||
$prep_arr = array('item' => $item, 'html' => $s);
|
||||
call_hooks('prepare_body_final', $prep_arr);
|
||||
return $prep_arr['html'];
|
||||
|
|
|
@ -12,6 +12,8 @@ function tagger_content(&$a) {
|
|||
}
|
||||
|
||||
$term = notags(trim($_GET['term']));
|
||||
// no commas allowed
|
||||
$term = str_replace(',','',$term);
|
||||
|
||||
if(! $term)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue