aboutsummaryrefslogtreecommitdiffstats
path: root/include/taxonomy.php
diff options
context:
space:
mode:
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;
}