]> git.mxchange.org Git - friendica.git/commitdiff
tag display with item
authorFriendika <info@friendika.com>
Tue, 25 Oct 2011 00:25:49 +0000 (17:25 -0700)
committerFriendika <info@friendika.com>
Tue, 25 Oct 2011 00:25:49 +0000 (17:25 -0700)
include/text.php
mod/tagger.php

index ba6c2531fbeb380734a9de600ad6e800d04a35ae..a9763fd2112e212bea547ca441d871309b978224 100644 (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'];
index 4127aaadde4f4c6a7fabc783191de19c34a48574..7114ed0ce8f81abb599e8ef3865e9d42ca7d7e76 100644 (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;