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/forum/forum.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/forum') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 370df2d05..10b7a098b 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -675,7 +675,7 @@ function template_preprocess_forums(&$variables) { if (node_access('create', $type)) { // Fetch the "General" name of the content type; // Push the link with title and url to the array. - $forum_types[$type] = array('title' => t('Post new @node_type', array('@node_type' => node_get_types('name', $type))), 'href' => "node/add/$type/$variables[tid]"); + $forum_types[$type] = array('title' => t('Post new @node_type', array('@node_type' => node_get_types('name', $type))), 'href' => 'node/add/'. str_replace('_', '-', $type) .'/'. $variables[tid]); } } -- cgit v1.2.3