Fixed forum links

Moving the forum path under "community" caused links in forum lists and breadcrumbs to be incorrect. Updated to use the new path.

(DBOINCP-59)
This commit is contained in:
Tristan Olive 2014-02-11 08:49:42 -05:00
parent 31afdb010f
commit 7e84f2fe30
5 changed files with 6 additions and 6 deletions

View File

@ -51,7 +51,7 @@
* left-margin for indenting.
*/ ?>
<?php print str_repeat('<div class="indent">', $forum->depth); ?>
<div class="name"><a href="<?php print $forum->link; ?>"><?php print $forum->name; ?></a></div>
<div class="name"><?php print l($forum->name, "community/forum/{$forum->tid}", array('html' => TRUE)); ?></div>
<?php if ($forum->description): ?>
<div class="description"><?php print $forum->description; ?></div>
<?php endif; ?>

View File

@ -49,7 +49,7 @@
?>
<h2 class="title">
<?php print l($forum_vocab->name, 'forum') . ' &rsaquo; '; ?>
<?php print l($forum_vocab->name, 'community/forum') . ' &rsaquo; '; ?>
<?php print $taxonomy->name; ?>
</h2>

View File

@ -91,10 +91,10 @@
// Get vocabulary name and taxonomy name for subtitle breadcrumbs
$taxonomy = current($node->taxonomy);
if ($forum_vocab = taxonomy_vocabulary_load($taxonomy->vid)) {
$subtitle[] = l($forum_vocab->name, 'forum');
$subtitle[] = l($forum_vocab->name, 'community/forum');
}
if (isset($taxonomy->name)) {
$subtitle[] = l($taxonomy->name, "forum/{$taxonomy->tid}");
$subtitle[] = l($taxonomy->name, "community/forum/{$taxonomy->tid}");
}
$subtitle = implode(' &rsaquo; ', $subtitle);
}

View File

@ -100,7 +100,7 @@
// Get vocabulary name and taxonomy name for subtitle breadcrumbs
$taxonomy = taxonomy_get_term($forum_node->tid);
if ($forum_vocab = taxonomy_vocabulary_load($taxonomy->vid)) {
$subtitle[] = l($forum_vocab->name, 'forum');
$subtitle[] = l($forum_vocab->name, 'community/forum');
}
if ($team_forum) {
$subtitle[] = l($team_forum->title, "community/teams/{$team_forum->nid}/forum/{$team_forum->tfid}");

View File

@ -76,7 +76,7 @@
<div id="forum">
<h2 class="title">
<?php print l($forum_vocab->name, 'forum') . ' &rsaquo; '; ?>
<?php print l($forum_vocab->name, 'community/forum') . ' &rsaquo; '; ?>
<?php print $team_forum->title; ?>
</h2>
<?php if ($rows): ?>