1
0
Fork 0

tag display with item

This commit is contained in:
Friendika 2011-10-24 17:25:49 -07:00
parent 3b33c0d075
commit 790c4a4e1a
2 changed files with 12 additions and 1 deletions

View file

@ -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'];

View file

@ -11,7 +11,9 @@ function tagger_content(&$a) {
return;
}
$term= notags(trim($_GET['term']));
$term = notags(trim($_GET['term']));
// no commas allowed
$term = str_replace(',','',$term);
if(! $term)
return;