From 75a0deb2722bde4fc7d60d02f186809fbc77320d Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 18 May 2011 00:07:38 -0500 Subject: Issue #1089174 by plach: Fixed Prepare view hooks do not receive the language parameter. --- modules/taxonomy/taxonomy.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 5fb41e61f..50d2fd608 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -682,8 +682,8 @@ function taxonomy_term_view($term, $view_mode = 'full', $langcode = NULL) { $langcode = $GLOBALS['language_content']->language; } - field_attach_prepare_view('taxonomy_term', array($term->tid => $term), $view_mode); - entity_prepare_view('taxonomy_term', array($term->tid => $term)); + field_attach_prepare_view('taxonomy_term', array($term->tid => $term), $view_mode, $langcode); + entity_prepare_view('taxonomy_term', array($term->tid => $term), $langcode); $build = array( '#theme' => 'taxonomy_term', -- cgit v1.2.3