summaryrefslogtreecommitdiff
path: root/modules/forum/forum.module
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-07-04 08:59:05 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-07-04 08:59:05 +0000
commit59aa2ae8e8a7e29e0029941b28bce5b7ba31ae94 (patch)
tree53b2f31898c20a168d742111ae210aa19393dbbd /modules/forum/forum.module
parentc21db64ae8f965f28342b6cf528d180a057c6412 (diff)
downloadbrdo-59aa2ae8e8a7e29e0029941b28bce5b7ba31ae94.tar.gz
brdo-59aa2ae8e8a7e29e0029941b28bce5b7ba31ae94.tar.bz2
#71925 by Steven, remove # prefix from link array keys.
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r--modules/forum/forum.module6
1 files changed, 3 insertions, 3 deletions
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']);
}
}
}