summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurits Lawende2012-12-06 15:00:36 (GMT)
committer Maurits Lawende2012-12-06 15:00:36 (GMT)
commitf2ee86c214e7cdc8c4b6fe2f47dd18dd2dd719ab (patch)
treee090b6605867c18a205260191abc3d5adcbe7f9a
parent3921ea9ef2d16f1e24086016331bc4da7b0859c7 (diff)
Issue #1600700 by guy_schneerson: Fixed hansel_taxonomy.module doesn't work in localized Drupal when viewing term pages.
-rw-r--r--taxonomy/hansel_taxonomy.module6
1 files changed, 6 insertions, 0 deletions
diff --git a/taxonomy/hansel_taxonomy.module b/taxonomy/hansel_taxonomy.module
index c2b3e36..bbe5042 100644
--- a/taxonomy/hansel_taxonomy.module
+++ b/taxonomy/hansel_taxonomy.module
@@ -46,6 +46,9 @@ function hansel_taxonomy_action_add_term_path_get_crumbs($arguments) {
}
if ($term = taxonomy_term_load($tid)) {
$parents = taxonomy_get_parents_all($term->tid);
+ if (function_exists('i18n_taxonomy_localize_terms')) {
+ $parents = i18n_taxonomy_localize_terms($parents);
+ }
foreach ($parents as $term) {
$links[] = array(
'title' => $term->name,
@@ -90,6 +93,9 @@ function hansel_taxonomy_action_add_term_path_get_crumbs($arguments) {
'href' => 'taxonomy/term/' . $term->tid,
);
$parents = taxonomy_get_parents_all($term->tid);
+ if (function_exists('i18n_taxonomy_localize_terms')) {
+ $parents = i18n_taxonomy_localize_terms($parents);
+ }
foreach ($parents as $parent) {
$link[$parent->tid] = array(
'title' => $parent->name,