summaryrefslogtreecommitdiff
path: root/modules/forum.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/forum.module')
-rw-r--r--modules/forum.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/forum.module b/modules/forum.module
index d305b914c..4ba752d73 100644
--- a/modules/forum.module
+++ b/modules/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']);
}
}
}