diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 279f198bc78902f3cb7152610aab4d95c37b3fd3..68632ea9b0926d1d676e77ff792ee80680c74c42 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -674,7 +674,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/'. str_replace('_', '-', $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']); } }