From dae71fe86292a9f13a100fa0b3cfe0454730f6c9 Mon Sep 17 00:00:00 2001
From: Angie Byron <webchick@24967.no-reply.drupal.org>
Date: Fri, 19 Sep 2008 02:43:40 +0000
Subject: [PATCH] #190850 by Poetro and Robin Monks: Replace hard-coded
 taxonomy links by taxonomy_term_path().

---
 modules/taxonomy/taxonomy.module    | 2 +-
 modules/taxonomy/taxonomy.pages.inc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index ec3d64428239..c5fde0e83dbf 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -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;
 }
diff --git a/modules/taxonomy/taxonomy.pages.inc b/modules/taxonomy/taxonomy.pages.inc
index bcaffbf2561c..74f0fd2a0ba2 100644
--- a/modules/taxonomy/taxonomy.pages.inc
+++ b/modules/taxonomy/taxonomy.pages.inc
@@ -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);
-- 
GitLab