- Bugfix: don't user term->descriptions in link attributes as they are HTML
code on their own.4.3.x
parent
f7bc6af717
commit
db8c3edca5
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue