From 19619d93542b4588e0d80f2a522cf4b08f2ac563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Mon, 7 Jan 2008 13:18:40 +0000 Subject: #206670 by keith.smith and myself: node type names have their underscores converted to hyphens in node/add links --- modules/translation/translation.pages.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/translation') diff --git a/modules/translation/translation.pages.inc b/modules/translation/translation.pages.inc index bc0a162fd..d82d3da89 100644 --- a/modules/translation/translation.pages.inc +++ b/modules/translation/translation.pages.inc @@ -47,7 +47,7 @@ function translation_node_overview($node) { // No such translation in the set yet: help user to create it. $title = t('n/a'); if (node_access('create', $node)) { - $options[] = l(t('add translation'), 'node/add/'. $node->type, array('query' => "translation=$node->nid&language=$language->language")); + $options[] = l(t('add translation'), 'node/add/'. str_replace('_', '-', $node->type), array('query' => "translation=$node->nid&language=$language->language")); } $status = t('Not translated'); } -- cgit v1.2.3