summaryrefslogtreecommitdiff
path: root/modules/forum/forum.module
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-07 13:18:40 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-07 13:18:40 +0000
commit19619d93542b4588e0d80f2a522cf4b08f2ac563 (patch)
tree9a495dc1a9f856f3690ae53a50f13ec830d919fd /modules/forum/forum.module
parent444c5e16be471c03e1c4248a155b8308c792abbd (diff)
downloadbrdo-19619d93542b4588e0d80f2a522cf4b08f2ac563.tar.gz
brdo-19619d93542b4588e0d80f2a522cf4b08f2ac563.tar.bz2
#206670 by keith.smith and myself: node type names have their underscores converted to hyphens in node/add links
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r--modules/forum/forum.module2
1 files changed, 1 insertions, 1 deletions
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]);
}
}