From 59aa2ae8e8a7e29e0029941b28bce5b7ba31ae94 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Tue, 4 Jul 2006 08:59:05 +0000 Subject: #71925 by Steven, remove # prefix from link array keys. --- modules/forum/forum.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/forum/forum.module') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index d305b914c..4ba752d73 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -636,14 +636,14 @@ function _forum_parent_select($tid, $title, $child_type) { } function forum_link_alter(&$node, &$links) { - foreach ($links AS $module => $link) { + foreach ($links as $module => $link) { if (strstr($module, 'taxonomy_term')) { // Link back to the forum and not the taxonomy term page. We'll only // do this if the taxonomy term in question belongs to forums. - $tid = str_replace('taxonomy/term/', '', $link['#href']); + $tid = str_replace('taxonomy/term/', '', $link['href']); $term = taxonomy_get_term($tid); if ($term->vid == _forum_get_vid()) { - $links[$module]['#href'] = str_replace('taxonomy/term', 'forum', $link['#href']); + $links[$module]['href'] = str_replace('taxonomy/term', 'forum', $link['href']); } } } -- cgit v1.2.3