From 945b337502b4e1928ebeccd8bbd940b0522b4afb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 15 Jan 2008 08:16:45 +0000 Subject: - Patch #209034 by theborg: fixed small code style error that generates warnings. --- modules/forum/forum.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/forum/forum.module') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 279f198bc..68632ea9b 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']); } } -- cgit v1.2.3