diff --git a/panels_node_content/panels_node_content.module b/panels_node_content/panels_node_content.module index d51de39638e0177bef56c58a6689f90636d58553..42216e979613ff9309dd35d7d8109ca5d44130f2 100644 --- a/panels_node_content/panels_node_content.module +++ b/panels_node_content/panels_node_content.module @@ -73,8 +73,11 @@ function panels_node_content_render($subtype, $conf, $panel_args) { // Support node translation if (module_exists('translation')) { - if ($translation = module_invoke('translation', 'node_nid', $nid, $GLOBALS['locale'])) { - $nid = $translation; + if ($translations = module_invoke('translation', 'node_get_translations', $nid )) { + if( $translations[$GLOBALS['language']->language] ) + { + $nid = $translations[$GLOBALS['language']->language]->nid; + } } }