- Bugfix: don't user term->descriptions in link attributes as they are HTML

code on their own.
4.3.x
Dries Buytaert 2003-08-16 05:25:33 +00:00
parent f7bc6af717
commit db8c3edca5
2 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ function taxonomy_link($type, $node = NULL) {
if ($node->taxonomy) {
foreach ($node->taxonomy as $tid) {
$term = taxonomy_get_term($tid);
$links[] = l($term->name, "taxonomy/page/or/$term->tid", $term->description ? array("title" => $term->description) : array());
$links[] = l($term->name, "taxonomy/page/or/$term->tid");
}
}
else {
@ -55,7 +55,7 @@ function taxonomy_link($type, $node = NULL) {
$links = array();
foreach (taxonomy_node_get_terms($node->nid) as $term) {
$links[] = l($term->name, "taxonomy/page/or/$term->tid", $term->description ? array("title" => $term->description) : array());
$links[] = l($term->name, "taxonomy/page/or/$term->tid");
}
}

View File

@ -40,7 +40,7 @@ function taxonomy_link($type, $node = NULL) {
if ($node->taxonomy) {
foreach ($node->taxonomy as $tid) {
$term = taxonomy_get_term($tid);
$links[] = l($term->name, "taxonomy/page/or/$term->tid", $term->description ? array("title" => $term->description) : array());
$links[] = l($term->name, "taxonomy/page/or/$term->tid");
}
}
else {
@ -55,7 +55,7 @@ function taxonomy_link($type, $node = NULL) {
$links = array();
foreach (taxonomy_node_get_terms($node->nid) as $term) {
$links[] = l($term->name, "taxonomy/page/or/$term->tid", $term->description ? array("title" => $term->description) : array());
$links[] = l($term->name, "taxonomy/page/or/$term->tid");
}
}