diff options
-rw-r--r-- | jquery_drawer.module | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/jquery_drawer.module b/jquery_drawer.module index b941925..0deac8f 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -123,7 +123,9 @@ function theme_jquery_drawer($menu) { $output = '<ul id="drw_tabs">'; $output .= implode((array) module_invoke_all('jquery_drawer')); - $menu = i18ntaxonomy_localize_terms($menu); + if (module_exists('i18n')) { + $menu = i18ntaxonomy_localize_terms($menu); + } foreach ($menu as $item) { $link['title'] = $item->name; @@ -163,7 +165,13 @@ function jquery_drawer_page($tid = NULL) { // Check for child terms $vid = variable_get('jquery_drawer', '1'); - $terms = i18ntaxonomy_localize_terms(taxonomy_node_tree_taxonomy_get_tree($vid, $tid)); + $terms = taxonomy_node_tree_taxonomy_get_tree($vid, $tid); + + if (module_exists('i18n')) { + $terms = i18ntaxonomy_localize_terms($terms); + } + + foreach ($terms as $term) { $filter[] = $term->tid; |