diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-05 08:08:43 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-05 08:08:43 +0000 |
commit | e574bcffcebf168a8b2f329b2eea8269f494be6c (patch) | |
tree | 9e50d7874454a9fe4ee52dc92ad153a6c9a63372 /modules/translation | |
parent | f1b30b89c59127ea787bafd7da6b06f0266d4bb2 (diff) | |
download | brdo-e574bcffcebf168a8b2f329b2eea8269f494be6c.tar.gz brdo-e574bcffcebf168a8b2f329b2eea8269f494be6c.tar.bz2 |
#835212 by plach, jhodgdon: Fixed locale_url_outbound_alter() should be run only on multilingual sites.
Diffstat (limited to 'modules/translation')
-rw-r--r-- | modules/translation/translation.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module index 75b0bdede..0a90d115b 100644 --- a/modules/translation/translation.module +++ b/modules/translation/translation.module @@ -181,7 +181,7 @@ function translation_form_alter(&$form, &$form_state, $form_id) { * is part of a translation set. */ function translation_node_view($node, $view_mode) { - if (isset($node->tnid) && $translations = translation_node_get_translations($node->tnid)) { + if (isset($node->tnid) && drupal_multilingual() && $translations = translation_node_get_translations($node->tnid)) { $path = 'node/' . $node->nid; $links = language_negotiation_get_switch_links(LANGUAGE_TYPE_INTERFACE, $path); if (is_object($links)) { |