summaryrefslogtreecommitdiff
path: root/modules/forum
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-01-15 08:16:45 +0000
committerDries Buytaert <dries@buytaert.net>2008-01-15 08:16:45 +0000
commit945b337502b4e1928ebeccd8bbd940b0522b4afb (patch)
tree88e815c5e8f8ba43ebd21b4461c81c6cbeeb4671 /modules/forum
parentb62029cfb8193b40676d2bcb928e4044b1fca7cd (diff)
downloadbrdo-945b337502b4e1928ebeccd8bbd940b0522b4afb.tar.gz
brdo-945b337502b4e1928ebeccd8bbd940b0522b4afb.tar.bz2
- Patch #209034 by theborg: fixed small code style error that generates warnings.
Diffstat (limited to 'modules/forum')
-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 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']);
}
}