#190850 by Poetro and Robin Monks: Replace hard-coded taxonomy links by taxonomy_term_path().

merge-requests/26/head
Angie Byron 2008-09-19 02:43:40 +00:00
parent 1e8ee589bb
commit dae71fe862
2 changed files with 2 additions and 2 deletions

View File

@ -1223,7 +1223,7 @@ function taxonomy_rss_item($node) {
foreach ($node->taxonomy as $term) {
$output[] = array('key' => 'category',
'value' => check_plain($term->name),
'attributes' => array('domain' => url('taxonomy/term/' . $term->tid, array('absolute' => TRUE))));
'attributes' => array('domain' => url(taxonomy_term_path($term), array('absolute' => TRUE))));
}
return $output;
}

View File

@ -35,7 +35,7 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
$breadcrumb = array();
while ($parents = taxonomy_get_parents($current->tid)) {
$current = array_shift($parents);
$breadcrumb[] = l($current->name, 'taxonomy/term/' . $current->tid);
$breadcrumb[] = l($current->name, taxonomy_term_path($current));
}
$breadcrumb[] = l(t('Home'), NULL);
$breadcrumb = array_reverse($breadcrumb);