aboutsummaryrefslogtreecommitdiffstats
path: root/include/taxonomy.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-20 20:34:00 -0700
committerfriendica <info@friendica.com>2013-06-20 20:34:00 -0700
commit58ac92f4e162abdad2d2f259bbf6c58029f65b86 (patch)
tree56262a4744baadcc6d61ed5f393cf3c29f330532 /include/taxonomy.php
parent61601dc23d3e8305720bfc4e4e6b6dbd7b85f546 (diff)
downloadvolse-hubzilla-58ac92f4e162abdad2d2f259bbf6c58029f65b86.tar.gz
volse-hubzilla-58ac92f4e162abdad2d2f259bbf6c58029f65b86.tar.bz2
volse-hubzilla-58ac92f4e162abdad2d2f259bbf6c58029f65b86.zip
bring back the body tag list - though it really belongs in the templates. It's difficult to debug community tags when you can't see any tags (except those the author typed in).
Diffstat (limited to 'include/taxonomy.php')
-rw-r--r--include/taxonomy.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php
index 5130ff9b7..aadcd938f 100644
--- a/include/taxonomy.php
+++ b/include/taxonomy.php
@@ -83,9 +83,13 @@ function format_term_for_display($term) {
$s .= '#';
elseif($term['type'] == TERM_MENTION)
$s .= '@';
+ else
+ return $s;
- if($term['url']) $s .= '<a target="extlink" href="' . $term['url'] . '">' . htmlspecialchars($term['term']) . '</a>';
- else $s .= htmlspecialchars($term['term']);
+ if($term['url'])
+ $s .= '<a href="' . $term['url'] . '">' . htmlspecialchars($term['term']) . '</a>';
+ else
+ $s .= htmlspecialchars($term['term']);
return $s;
}