mirror of https://github.com/BOINC/boinc.git
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:
parent
31afdb010f
commit
7e84f2fe30
|
@ -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; ?>
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
?>
|
||||
|
||||
<h2 class="title">
|
||||
<?php print l($forum_vocab->name, 'forum') . ' › '; ?>
|
||||
<?php print l($forum_vocab->name, 'community/forum') . ' › '; ?>
|
||||
<?php print $taxonomy->name; ?>
|
||||
</h2>
|
||||
|
||||
|
|
|
@ -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(' › ', $subtitle);
|
||||
}
|
||||
|
|
|
@ -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}");
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
|
||||
<div id="forum">
|
||||
<h2 class="title">
|
||||
<?php print l($forum_vocab->name, 'forum') . ' › '; ?>
|
||||
<?php print l($forum_vocab->name, 'community/forum') . ' › '; ?>
|
||||
<?php print $team_forum->title; ?>
|
||||
</h2>
|
||||
<?php if ($rows): ?>
|
||||
|
|
Loading…
Reference in New Issue