diff --git a/core/modules/content_translation/content_translation.pages.inc b/core/modules/content_translation/content_translation.pages.inc index 9f06142..7415ebe 100644 --- a/core/modules/content_translation/content_translation.pages.inc +++ b/core/modules/content_translation/content_translation.pages.inc @@ -27,7 +27,6 @@ function content_translation_overview(EntityInterface $entity) { foreach (array('canonical', 'edit-form', 'translation-overview') as $name) { $rel[$name] = $entity->uri($name); } - $translation_path = $rel['translation-overview']['path']; $header = array(t('Language'), t('Translation'), t('Source language'), t('Status'), t('Operations')); $rows = array(); @@ -53,16 +52,14 @@ function content_translation_overview(EntityInterface $entity) { foreach ($languages as $language) { $language_name = $language->name; $langcode = $language->id; - $add_path = $translation_path . '/add/' . $original . '/' . $langcode; - $translate_path = $translation_path . '/edit/' . $langcode; - $delete_path = $translation_path . '/delete/' . $langcode; - - if ($translation_path) { - $add_links = _content_translation_get_switch_links($add_path); - $edit_links = _content_translation_get_switch_links($rel['edit-form']['path']); - $translate_links = _content_translation_get_switch_links($translate_path); - $delete_links = _content_translation_get_switch_links($delete_path); - } + + $add_path = $rel['translation-overview']['path'] . '/add/' . $original . '/' . $langcode; + $translate_path = $rel['translation-overview']['path'] . '/edit/' . $langcode; + + $add_links = _content_translation_get_switch_links($add_path); + $edit_links = _content_translation_get_switch_links($rel['edit-form']['path']); + $translate_links = _content_translation_get_switch_links($translate_path); + $delete_links = _content_translation_get_switch_links($rel['translation-overview']['path'] . '/delete/' . $langcode); $operations = array( 'data' => array(