Skip to content
Snippets Groups Projects
Commit 194f8c22 authored by Marcos Cano's avatar Marcos Cano :speech_balloon: Committed by Daniele Piaggesi
Browse files

Issue #2731923 by marcoscano: Module enables i18n_node if disabled

parent 0b9b38a4
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ function prevnext_node_view($node, $view_mode, $langcode) {
$extrafields = field_extra_fields_get_display('node', $node->type, $view_mode);
$language = NULL;
if (module_enable(array('i18n_node'))) {
if (module_exists(array('i18n_node'))) {
$mode = variable_get('language_content_type_' . $node->type, 0);
$language = ($mode != 0) ? $langcode : NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment